`
jackyoo8
  • 浏览: 82214 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
社区版块
存档分类
最新评论

Cannot execute queries while other unbuffered ....

    博客分类:
  • php
阅读更多
:Cannot execute queries while other unbuffered queries are active.  
Consider using PDOStatement::fetchAll().  
Alternatively, if your code is only ever going to run against mysql,
 you may enable query buffering by setting the 
PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute. 
in /www/KFC/Components/libs/mypdo/mypdo.class.php on line 54



在程序中将 $db->exec($sql) 改成 $db->execute($sql) 解决问题


原因进一步研究中


相关连接:
http://usphp.com/manual/en/function.PDO-exec.php
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics