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

后端 未结 4 369
渐次进展
渐次进展 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:47

    Make sure that the party_id you are trying to update exists in the database.

    Also, if your table is InnoDB, make sure that you have autocommit on or issue an explicit commit after the update is made.

提交回复
热议问题