PHP PDO related: Update SQL statement not updating the content of the database

后端 未结 4 366
渐次进展
渐次进展 2021-01-24 05:21

I am trying to implement an update statement using a prepared statement in a PHP script, but it appears that it is not updating the record in the database and I am not sure why

4条回答
  •  清歌不尽
    2021-01-24 05:42

    Might not help, but why are you only binding 3 variables, when there are 4? I can't say that I have experience doing this in PHP, but in Perl and Oracle it would throw an error. I'd try binding the 2 SETs and the 1 WHERE, and removing the first assignment, and see if that works.

提交回复
热议问题