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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to