SyntaxFix
Write A Post
Hire A Developer
Questions
If you would still like to perform the action if the $result is invalid:
$result
if(!mysql_num_rows($result)) // Do stuff
This will account for a 0 and the false that is returned by mysql_num_rows() on failure.
0
false
mysql_num_rows()