Jump to content

do-while does not working!!


bakigkgz

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.