Warning: mysql_result() expects parameter 1 to be resource, boolean given in xxx.php on line 26
<p>I try to fix it, but i just can not see where the problem is? somebody help me please! Thank you so much</p>

<pre><code>function user_exists($email){
    $email = mysql_real_escape_string($email);
    $query = mysql_query("SELECT COUNT('user_id') FROM 'users' WHERE 'email'='$email'");
    return (mysql_result($query, 0) == 1 ) ? true:false; //this is line 26
}

?&gt;
</code></pre>
