 <p>Referencing the docs here: <a href="http://php.net/manual/en/function.mysql-query.php" rel="nofollow">http://php.net/manual/en/function.mysql-query.php</a>, mysql_query will return false in certain cases:</p> <p>"mysql_query() will also fail and return FALSE if the user does not have permission to access the table(s) referenced by the query."</p> <p>Further, you either have a bare word in there "tblurser" or there is a "$" missing. Either way that should likely be fixed.</p>