Jump to content

SQl num_rows problem


emtec

Recommended Posts

when i try to count rows from an SQL select i get an warning

 

$countviews = mysql_query("SELECT * FROM viewed WHERE sfw = '0' AND cookieid = $id");
$num_rows_viewed = mysql_num_rows($countviews);

 

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in ******.php on line 58

 

anybody an idea why this is?

Link to comment
https://forums.phpfreaks.com/topic/178594-sql-num_rows-problem/
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.