elseif(isset($_POST['submit']))
{
// Look for their user
$lookuser = mysql_query("SELECT * FROM `users` WHERE username='". mysql_escape_string($_POST['username']) ."'");
// If we find a row
if(mysql_num_rows($lookuser) > 0)
但我对此的回应是:An error has occured. <br> If you are sure you entered your username correctly, please contact an administrator.
我试图回应$_POST['username'];
一切都很好。我已经确保我的用户存在,效果很好。
我得到的 PHP 错误:
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in password.php on line 23