Should this work?

$f1 = rand(999,99999999999);

        while($check_sid = mysql_query("SELECT * FROM that_table WHERE this =
'$f1'")){

        $f1 = rand(999,99999999999);

}


i.e. put the random number in a loop to check and make sure it is already
not in use?

Thanks,

-Mike



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to