oleronnais
New Member
I know this has to be a simple fix and I partially understand why I am getting this error but don't know how to fix it. I've looked over the docs but can't find a solution other than using buffered queries option. I have tried that as well but it doesn't work.The error is: PDO Cannot execute queries while other unbuffered queries are activeThe error is coming from the line where I am building the $result array.\[code\]foreach($phones as $phone){ $stmt = db::getInstance()->prepare("CALL phonesphone)"); $stmt->bindParam('hone', $phone, PDO:ARAM_INT, 10); $stmt->execute(); $result[] = db::getInstance()->query("SELECT @phone;")->fetchAll(PDO::FETCH_ASSOC);}\[/code\]