Jump to content

Recommended Posts

This is really ridiculous, i used PDO, but kept getting messages like this one:

Fatal error: SQLSTATE[HY000]: General error: 2014 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.
none of the fixes that i found online worked, so i figured hey,

let me switch to mysqli since it's OO and supports stored procedures. To my surprise this one has a bug as well:

Commands out of sync; you can't run this command now
i tried freeing results, tried to understand mysqli::multi_query but was unsuccessful.

My question: is there a database class that will support all the new MySQL features and not bring me down with these retarded errors?

I run PHP 5.2.5 on Windows.

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/117227-good-db-class/
Share on other sites

Ever consider that you're doing something incorrect in your code and therefore these classes can't continue on? These errors aren't bugs, they're genuine errors flagging that you're doing something wrong with your stored procedures. Post your code here and someone might be more willing to help you out :)

Link to comment
https://forums.phpfreaks.com/topic/117227-good-db-class/#findComment-603099
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.