Jump to content

PHP warning...mysql_num_rows


vexx

Recommended Posts

I'm on Mysql 5.0.51a-community and i get the following php warning

 

PHP Warning:  mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/test/public_html/admin/testphp.php on line 24

 

The php code:

 

if(mysql_num_rows(mysql_query("SELECT file FROM datadb WHERE file='".$purl."' LIMIT 0,1"))==0)

 

Link to comment
https://forums.phpfreaks.com/topic/116553-php-warningmysql_num_rows/
Share on other sites

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.