Jump to content

Num_rows always returning false


darkfreaks

Recommended Posts

i think i found the problem i am using a session to pass the  USER ID. but not sure.

 

$m_id = $_SESSION['id'];
    	
        $result = mysql_query("SELECT * FROM notifications WHERE member_id=$m_id AND status=1");
        $num_rows = mysql_num_rows($result); 

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.