Since it's on a new server, I started realized I was getting this error:
Array
(
[0] => HY000
[1] => 2014
[2] => 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.
)
I do have multiple pages that have loops with another query inside, like so:
Transaction:
- Image A
- Image B
- Image C
- Agent 1
= Agent Information
- Agent 2
= Agent Information
- Transaction Details
So therefore a simple Join would not do.
Is there a file/setting I can change to allow the queries or do I have to manually go in 1 by 1 to each of the 260 PDO::Prepare statements and add MYSQL_ATTR_USE_BUFFERED_QUERY=>true?
Only reason I am trying other solutions first is because I dont know if it will mess up some of my loops.
I did not use PDO::fetchAll's, i used
foreach($db->query() as $row)
Thanks in advance!

New Topic/Question
Reply




MultiQuote




|