This PDO prepared statement returns false but does not throw an error

后端 未结 6 1671
[愿得一人]
[愿得一人] 2021-02-18 23:09

This code does not throw an error but the query fails, that is, the execute method returns false. How could that be?

require_once(\"Abstracts/DBMana         


        
6条回答
  •  隐瞒了意图╮
    2021-02-18 23:23

    I was also facing that error.

    I used print_r($con->errorInfo()); it gives me 0000 in 0th key of array.

    Then I matched all column names and figured out that I am using wrong field name.

    This saves my day.

提交回复
热议问题