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 Link to comment https://forums.phpfreaks.com/topic/5934-warning-mysql_num_rows-supplied-argument-is-not-a-valid/ Share on other sites More sharing options...
wickning1 Posted March 27, 2006 Share Posted March 27, 2006 if (mysql_num_rows($query) > 0) Link to comment https://forums.phpfreaks.com/topic/5934-warning-mysql_num_rows-supplied-argument-is-not-a-valid/#findComment-21220 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.