View Single Post
Old 12-15-2009, 10:11 AM   #2 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

There are a few ways to get code to repeat if a condition is not met, to name a few:

While, do while, for.

While:
PHP Code:
while($row=='no')
{
    
//do stuff
    
if($endConditionMet) { $row 'yes'; }

__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote