Should this work?
$f1 = rand(999,999);
while($check_sid = mysql_query(SELECT * FROM that_table WHERE this =
'$f1')){
$f1 = rand(999,999);
}
i.e. put the random number in a loop to check and make sure it is already
not in use?
Thanks,
-Mike
--
PHP
-Original Message-
From: SpyProductions Support Team [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 12:57 PM
To: [EMAIL PROTECTED]
Subject: [PHP] while loop- will this work?
Should this work?
$f1 = rand(999,999);
while($check_sid
-Original Message-
From: SpyProductions Support Team [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 11:57 AM
To: [EMAIL PROTECTED]
Subject: [PHP] while loop- will this work?
Should this work?
Nope...because the value returned by mysql_query() isn't the number
3 matches
Mail list logo