"Hola amigo interesante tu tema...."
try{ $this->Cnn=mysql_connect($this->HostName,$this->User,$this->Password); if($this->Cnn==false){ throw new Exception("Error!: No se puede conectar al servidor"); } mysql_select_db($this->BaseDatos,$this->Cnn); }catch (Exception $e){ $error=die("Error!: " . $e->getMessage() . ''."\n"); echo $error; }
Publicar un comentario
2 comentarios:
"Hola amigo interesante tu tema...."
try{
$this->Cnn=mysql_connect($this->HostName,$this->User,$this->Password);
if($this->Cnn==false){
throw new Exception("Error!: No se puede conectar al servidor");
}
mysql_select_db($this->BaseDatos,$this->Cnn);
}catch (Exception $e){
$error=die("Error!: " . $e->getMessage() . '
'."\n");
echo $error;
}
Publicar un comentario