MySQL Forums
Forum List  »  PHP

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in
Posted by: willie jackson
Date: April 07, 2009 11:41AM

hi i have a question i keep getting an error that says Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/pickurau/public_html/classes/Lib/Query.php on line 27
and heres what it says on line 27

if(!mysql_affected_rows() || mysql_num_rows($this->rs) < 1)
return false;
else
{
$this->totrows = mysql_num_rows($this->rs);
while($fetch = mysql_fetch_array($this->rs))
{
$this->records[$i] = $fetch;
$i++;
does anyone know how to fix this?

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.