Legaci Posted June 17, 2013 Share Posted June 17, 2013 $q=$dbh->query("SELECT count(*) FROM userstats us LEFT JOIN users u ON us.userid=u.userid WHERE us.=? > ? AND us.userid != ? AND u.user_level != 0", $mykey, $stat, $userid) ; return $db->fetch_single($q)+1; there is an error with this this is the message Fatal error: Call to a member function query() on a non-object in /home/bravelan/public_html/global_func.php on line 285 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.