error 413: request entity too large -SSRS
Hace 7 años
<?php class DBManager{ var $conect; var $BaseDatos; var $Servidor; var $Usuario; var $Clave; function DBManager(){ $this->BaseDatos = "name_BD"; $this->Servidor="localhost"; $this->Usuario = "user"; $this->Clave = "pass"; } function conectar() { if(!($con=@mysql_connect($this->Servidor, $this->Usuario,$this->Clave))){ echo"Error al conectar a la base de datos"; exit(); } if (!@mysql_select_db($this->BaseDatos,$con)){ echo "Error al seleccionar la base de datos"; exit(); } $this->conect=$con; return true; } function cerrar(){ mysql_close($this->conect); } } ?>
<?php include("conexionphp.php"); $conection=new DBManager; if($conection->conectar()==true){ $val=mysql_query("SELECT * FROM name_tabla"); } $conection->cerrar(); ?>
© Mundo Informatico 2011 | Design by Blogger Hack Supported by PBT
0 comentarios:
Publicar un comentario