Salve ragazzi ho fatto diverse ricerche e attualmente untilizzando server W2K3 e database mysql, uso questo script per trovare record random in tabella:
codice:
sql = "SELECT Max(IDContatto) AS MaxID, Min(IDContatto) AS MinID FROM database WHERE Status >= 4 AND Livello >=2"
Set Rs = Connect.Execute(SQL)
maxID = Rs("MaxID")
minID = Rs("MinID")
Randomize
rndID = Int((maxID - minID + 1) * Rnd + minID)
Rs.Close
Set Rs =nothing
SQL="SELECT * FROM database WHERE Status >= 4 AND Livello_Utente >=2 AND IDContatto >="&rndID&" LIMIT 1 "
Set RecSet = Server.CreateObject("ADODB.Recordset")
RecSet.Open SQL, Connect
...
...
Il problema che restituisce sempre più o meno gli stessi rerord...
Come mai?
Grazie anticipatamente, Deio