- 您的
UPDATE
语法错误 - 您可能打算更新一行而不是全部更新,因此您必须使用
WHERe
子句来定位特定行
更改
UPDATE `access_users` (`contact_first_name`,`contact_surname`,`contact_email`,`telephone`) VALUES (:firstname, :surname, :telephone, :email)
至
UPDATE `access_users` SET `contact_first_name` = :firstname, `contact_surname` = :surname, `contact_email` = :email, `telephone` = :telephone WHERe `user_id` = :user_id -- you probably have some sort of id



