RE: [PHP] If you ever had a Vic20

From: Date: Fri, 15 Aug 2003 11:08:44 +0000
Subject: RE: [PHP] If you ever had a Vic20
Groups: php.general 
Request: Send a blank email to php-general+get-159667@lists.php.net to get a copy of this message
[snip] $found = 0; while ($mydata = mysql_fetch_object($news)) { if ($mydata->StudentId == $StudentId) {$found = 1; break;} } if ($found==1){do this}else{do that} [/snip] Why two if's? Isn't if the student is found in the first if, don't you want to do stuff then? Just curious... I had a Vic20 sitting next to a Lisa... :)

« previous php.general (#159667) next »