rimango con un problema , cerco di riadattare la mia classe , pero mi da errori:
Codice PHP:

function connect()
{
try 
{
$this->db_core  = new PDO$this->db_type .":host=".$this->db_host";dbname=".$this->db_name.""$this->db_user$this->db_pass , array(PDO::ATTR_PERSISTENT=>$this->db_persistent));   
     if(!
$this->db_core )
     {
           return 
false;
     }
    
/* print_r($this->db_core);  */
} catch(PDOException $e
{
     if(
$e->getMessage() )
     {
           return 
false;
     }
   return 
true;
  }
}


function 
query($sql
{
global 
$RCW ;


$result =  $this->db_core->query($sql $this->db_core);
 
 if(!
$result)
 {
   return 
false;
 }
 return 
$result;

perche cosa sbaglio ?