next Posted July 29, 2008 Share Posted July 29, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/117227-good-db-class/ Share on other sites More sharing options...
ignace Posted July 29, 2008 Share Posted July 29, 2008 stop writing SQL at all and use Object Relational Mapping (ORM) like Propel or the Zend_Db component from the Zend Framework Quote Link to comment https://forums.phpfreaks.com/topic/117227-good-db-class/#findComment-603097 Share on other sites More sharing options...
genericnumber1 Posted July 29, 2008 Share Posted July 29, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/117227-good-db-class/#findComment-603099 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.