Jump to content


Photo

Warning: mysql_num_rows(): supplied argument is not a valid


  • Please log in to reply
1 reply to this topic

#1 essjay_d12

essjay_d12
  • Members
  • PipPipPip
  • Advanced Member
  • 121 posts

Posted 27 March 2006 - 02:53 PM

im trying to do an if statement but i keep getting the following error

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Program Files\Apache Group\Apache2\htdocs\dvdreviewer\genreSearch.php on line 306

the line it refers to is the following code

if (mysql_num_rows($query > 0))

the whole code looks like this
if (mysql_num_rows($query > 0))
{

}
else {
echo 'NOT FOUND';
}

cheers

d

#2 wickning1

wickning1
  • Members
  • PipPipPip
  • Advanced Member
  • 405 posts

Posted 27 March 2006 - 03:13 PM

if (mysql_num_rows($query) > 0)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users