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

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

    Instead of guessing, basic error handling must be implemented:

    $arr = $stmt->errorInfo();
    print_r($arr);
    

提交回复
热议问题