I know this question has been asked many times, but I\'ve read the answers to many of the questions and still cannot understand why I am receiving this error:
After struggling with this issue for days, I finally found that this worked for me:
$db = new PDO ($cnstring, $user, $pwd); $db->setAttribute (PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true);