我目前正在此錯誤使用mysql_fetch_assoc($query);
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/a6461923/public_html/index.html on line 111
這裏的時候是我的查詢:
$query = mysql_query("SELECT * FROM users WHERE email='$email' AND password='$encripted_password'");
謝謝!
您應該使用mysqli_ *或PDO。 – Jared
請使用搜索功能。這個問題一次又一次地回答。 – jprofitt
你的查詢很容易被SQL注入。閱讀http://en.wikipedia.org/wiki/SQL_injection –