hi can someone check this section up for me as im getting a error from it after converting to mysqli
Fatal error: Call to a member function query() on a non-object in /home/matureco/public_html/config/db_connect.php on line 67
// find total message per user
if(! function_exists(unReadMsgCount) )
{
function unReadMsgCount($id)
{
return $conn->query("select * from messages where rece_id='".$id."' and readflage = 0 and status=1")->num_rows;
}
}
ty jan x