Jump to content

how to use mysql_num_rows?


seany123

Recommended Posts

can someone tell me why this isn't working?

 

        $query2 = mysql_query("SELECT * user_links WHERE url='$user_url'");

        $num_rows = mysql_num_rows($query2);
        
        echo $num_rows;

 

i just get this error:

 

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given on line 31

Link to comment
https://forums.phpfreaks.com/topic/237359-how-to-use-mysql_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.