se fosse come dici te... non dovrebbe eseguire questa porzione di codice?

codice:
function connessione()
  {
    if (!$this->connessione = @mysql_connect($this->host, $this->user, $this->password))
    {
      trigger_error('Impossibile connettersi a MySQL.');
      $this->errore=true;
    }
    elseif (!@mysql_select_db($this->errore,$this->connessione))
    {
      trigger_error('Impossibile connettersi al database.');
      $this->errore=true;
    }
  }