note 80137 rejected from function.mysql-num-rows by tularis
| From: | tularis@php.net | Date: | Mon, 31 Dec 2007 10:40:43 +0000 |
| Subject: | note 80137 rejected from function.mysql-num-rows by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134601@lists.php.net to get a copy of this message | ||
Note Submitter: gyuri79 at yahoo dot com
----
I think I found a bug
If you put "or die(mysql_error());" after the mysql_num_rows function, and the the
returned rows are null or empty, your script will 'die' since mysql_num_rows is 0 :DD OMG
Don't use it like this :D
$num_rows = mysql_num_rows($result) or die(mysql_error());