且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在将参数绑定到PDO语句时遇到问题

更新时间:2023-01-23 17:14:56

您不应该在SQL中引用占位符.尝试将以下内容作为您的SQL字符串:

You shouldnt be quoting the placeholders in the SQL. Try the following as your SQL string:

$query = "INSERT INTO player_acct (username, salt, hashpass, email, state, country,  
          last_login) VALUES (:username, :salt, :hashpass, :email, :state, :country, :last_login)";