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); // Link to comment https://forums.phpfreaks.com/topic/135105-do-while-does-not-working/ 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. Link to comment https://forums.phpfreaks.com/topic/135105-do-while-does-not-working/#findComment-703727 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 Link to comment https://forums.phpfreaks.com/topic/135105-do-while-does-not-working/#findComment-703737 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.