我一直想让它工作一段时间,我似乎无法绕过它。
$query2 = mysql_query("INSERT INTO Player (PlayerID, Password, LoginIP) VALUES ('".addslashes($username)."'), password('".addslashes($pass)."'), ('".addslashes($IP)."') or exit("There was a error while registering, please try again in few minutes. <br><br>".mysql_error());
这是我得到的错误
答案 0 :(得分:0)
$query2 = mysql_query("INSERT INTO Player (PlayerID, Password, LoginIP) VALUES ('".addslashes($username)."', '".addslashes($pass)."', '".addslashes($IP)."') or exit("There was a error while registering, please try again in few minutes. <br><br>".mysql_error());
请试试这个,实际上你已经用过了
password('".addslashes($pass)."'),
这是语法错误,只需删除密码&#39;并且每个值周围都有一个括号,但所有值周围只应有一个括号。
答案 1 :(得分:-2)
我认为去除之前和之后的点 和addslashes() 功能应该这样做