RE: [PHP] Bizarre SQl, if issue....
| From: | Jay Blanchard | Date: | Tue, 29 Jul 2003 19:12:48 +0000 |
| Subject: | RE: [PHP] Bizarre SQl, if issue.... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-157401@lists.php.net to get a copy of this message | ||
[snip]
> $person = mysql_query("The Query");
> $thecount = mysql_num_rows($person);
> echo "$thecount \n";
>
> And tell us what $thecount is...
Returns 0 (zero).
[/snip]
Then
if($thecount == 0){
$whatever = 1;
} else {
$whatever = 4;
}
$whatever should be 1