Re: mysql_num_rows
| From: | Andrey Hristov | Date: | Sun, 06 Jan 2002 20:03:42 +0000 |
| Subject: | Re: mysql_num_rows | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-79618@lists.php.net to get a copy of this message | ||
That means the sql is not correct and the mysql_query()(mysql at all) didn't succeded to
execute it
Check you sql statement.
Regards,
Andrey Hristov
----- Original Message -----
From: "Gurhan Ozen" <c-gurhan.ozen@wcom.com>
To: <php-db@lists.php.net>
Sent: Sunday, January 06, 2002 9:52 PM
Subject: [PHP-DB] mysql_num_rows
> Hi everyone,
> I have a problem with mysql connectivety which is making me nuts. If the
> query is "select blah, blah from table" (i.e. without where clause)
> mysql_num_rows returns the right number, but when i put in a query with
> where clause, although there are rows returned, PHP is giving:
> "Warning: Supplied argument is not a valid MySQL result resource" error..
> Can anyone point me to any direction about this?
> Thanks.
>
> Gurhan
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>