Jump to content

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


essjay_d12

Recommended Posts

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

[code]if (mysql_num_rows($query > 0))[/code]

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

}
else {
echo 'NOT FOUND';
}[/code]

cheers

d

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.