PDO “Uncaught exception 'PDOException' .. Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll().”

前端 未结 3 428
萌比男神i
萌比男神i 2021-01-17 17:56

I know this question has been asked many times, but I\'ve read the answers to many of the questions and still cannot understand why I am receiving this error:

3条回答
  •  情书的邮戳
    2021-01-17 18:39

    This also happen if you are trying to fetch a non SELECT query (Eg - UPDATE/INSERT/ALTER/CREATE). Make sure to use fetch or fetchAll only for SELECT queries.

    Possible Duplicate Answer/Question

提交回复
热议问题