Ver Mensaje Individual
  #5 (permalink)  
Antiguo 14/09/2006, 16:41
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
un ejemplo:
Código PHP:
class Conexion {
      private 
$link;
      public function 
__construct$server$user$pass ) {
             
$this->link mysql_connect$server$user$pass );
             if( !
is_resource$this->link ) ) {
                  throw new 
Exception"Imposible conectar con base de datos, error: " mysql_error() );
             }
      }