Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Conexion {
- private $host = "localhost";
- private $user = "root";
- private $pass = "";
- private $bd = "nutricion";
- private $con;
- public function Conectar() {
- $this->con = mysqli_connect($this->host, $this->user) or die("Error al conectar al Servidor");
- mysql_select_db($this->bd, $this->con) or die("Ha ocurrido un Error al conectar a la Base de Datos");
- }
- }
- ?>`
Add Comment
Please, Sign In to add comment