Ver Mensaje Individual
  #8 (permalink)  
Antiguo 02/02/2009, 10:59
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Problema con herencia

No te recomiendo usar la @ para "suprimir" el error es mejor hacer algo así:
Código php:
Ver original
  1. public function __construct($_server = 'localhost', $_serverUser = 'root', $_serverPwd = null, $_serverDB = 'catalog2009') {
  2.        parent::__construct($_server, $_serverUser, $_serverPwd, $_serverDB);
  3.        if ($this->connect_error) {
  4.                 die('<h2>There was an error connecting to the database.Please, contact system administrator.</h2>');
  5.        }
  6.        $this->success = true;
  7. }

Saludos