Re: mysql_num_rows()
| From: | M. Sokolewicz | Date: | Mon, 27 Sep 2004 19:22:14 +0000 |
| Subject: | Re: mysql_num_rows() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197992@lists.php.net to get a copy of this message | ||
Generally you've got an error in your SQL at such points. If you do, mysql_query return false, and false is nor a valid MySQL result, so mysql_num_rows errors out.
Check using mysql_error() to see what you're doing wrong
Php Junkie wrote:
Ave, In one of my scripts, I'm getting the error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /Library/WebServer/Documents/limiteduse.net/dumptoday.php on line 56 I¹m not clearly sure why. I¹m running PHP5 with mySQL 4 ... Is there a compatibility issues somewhere?