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