bakigkgz Posted December 2, 2008 Share Posted December 2, 2008 my code below but it dosn't work table name random column name r I want to control do-while but program not working thanks // do { $c1=rand(100000,999999); $c2=rand(10000,99999); $code=$c1."".$c2; $result1=" SELECT r FROM random where r='$code' "; }while ($result1!=$code); // Quote Link to comment Share on other sites More sharing options...
haku Posted December 2, 2008 Share Posted December 2, 2008 Result one is just text. You have to actually pull that data from the database. You haven't inserted any code that interacts with the database in there. Quote Link to comment Share on other sites More sharing options...
Lumio Posted December 2, 2008 Share Posted December 2, 2008 See the mySQL manual (if you use MySQL) http://php.net/mysql_connect Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.