Quello che mi sembra strano è che qui o viene effettuata la connessione oppure viene selezionato il database...
Codice PHP:
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;
}
Credo che il codice dovrebbe essere così:
Codice PHP:
if (!$this->connessione = @mysql_connect($this->host, $this->user, $this->password))
{
trigger_error('Impossibile connettersi a MySQL.');
$this->errore=true;
}
if (!@mysql_select_db($this->errore,$this->connessione))
{
trigger_error('Impossibile connettersi al database.');
$this->errore=true;
}