PHP Classes

som error

Recommend this page to a friend!

      My Session  >  All threads  >  som error  >  (Un) Subscribe thread alerts  
Subject:som error
Summary:php 5.5.0 needs MYSQL_ATTR_USE_BUFFERED_QUERY
Messages:1
Author:Michael Ryndin
Date:2011-01-04 07:39:50
 

  1. som error   Reply   Report abuse  
Picture of Michael Ryndin Michael Ryndin - 2011-01-04 07:39:53
Please set bufferd option after line #652:

$this->connessione = new PDO($this->db_type.":dbname=".$this->db_name.";host=".$this->db_server, $this->db_username, $this->db_pass );



I add only:

$this->connessione->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY,true);

Otherwise, when object constructor works, error appears.