mysql num rows is failing

extra

New Member
\[code\]$result=mysql_query("SELECT * FROM users WHERE pass='".sha1($_POST['mainloginpass'])."'");if(mysql_num_rows($result)==1){\[/code\]it says that "mysql_num_rows() expects parameter 1 to be resource, boolean given"
 
Back
Top