essjay_d12 Posted March 27, 2006 Share Posted March 27, 2006 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 306the 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]cheersd Quote Link to comment Share on other sites More sharing options...
wickning1 Posted March 27, 2006 Share Posted March 27, 2006 if (mysql_num_rows($query) > 0) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.