note 19779 added to function.mysql-num-rows
| From: | jeawoong at yahoo dot com | Date: | Mon, 11 Mar 2002 02:02:52 +0000 |
| Subject: | note 19779 added to function.mysql-num-rows | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27594@lists.php.net to get a copy of this message | ||
RE: Why does mysql_num_rows($query) in Control Structures returns "Warning: Supplied argument
is not a valid MySQL result resource in ..." ? by html_addict@hotmail.com 30-Jan-2002 11:43
and Manuel_Hegemann@web.de 08-Feb-2002 07:49
I encountered the same problem and found that the "Warning" occures when no row was
returned NOT by reason of "Empty set" BUT by reason of SQL error.
Just try typing the query in MySQL prompt, then you will get an error.
--
http://www.php.net/manual/en/function.mysql-num-rows.php
http://master.php.net/manage/user-notes.php?action=edit+19779
http://master.php.net/manage/user-notes.php?action=delete+19779
http://master.php.net/manage/user-notes.php?action=reject+19779