我目前正在此错误使用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 –