RE: [PHP] mysql_num_rows dos not work
| From: | Benton Jackson | Date: | Sun, 02 Jul 2000 15:16:19 +0000 |
| Subject: | RE: [PHP] mysql_num_rows dos not work | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4365@lists.php.net to get a copy of this message | ||
This usually means there was an error in your query. Do a mysql_error()
and/or mysql_errno() after your query and see what it says.
> From: Sayyid Kamyar Izadi [mailto:kizadi@rahnema.com]
>
> Dear Sir/Madam
> I am using PHP4.0.
> I have a problem:
> I do not know how can i get the number of rows in query result.
> When i use mysql_num_rows($result) whic $result comes from a
> mysql_db_query a Warning comes that say :
> <<Supplied argument is not a valid MySQL result resource>>
> Can you help me how to use mysql functions to get correct results.
>
> Thanks.