Hi there. Trying to understand how the break statement works. If $x does = 0 will the below skip all statement in the while loop and start again at the top or just break out of it's own statement.
while( $line= mysql_fetch_array($result, MYSQL_ASSOC)){ If($x=0){ break; } If($name="BOB){ echo $name; } }
Test with something simpler, e.g.
while (true) { echo '1'; if (true) { echo '2'; break; } echo '3'; }
No point asking when you can so easily test it yourself.