I'm doing this:
while ($row=mysql_fetch_array($result) && !$agntexistfound){...
and in the while loop if I get what I'm looking for I set
$agntexistfound=1
I would then expect it to exit the while loop on next iteration
- however on the very first iteration my $row values are totally empty -
though it has a rowcount returned of 1
as an alternative I have added this before end of while loop:
if($agntexistfound)break;
which seems fine
but why doesn't the first version work?