se elimio la carpeta php
This commit is contained in:
parent
f8942a1d02
commit
e82ec89051
|
@ -1,26 +0,0 @@
|
||||||
<?php
|
|
||||||
class Conexion{
|
|
||||||
private $host = "localhost";
|
|
||||||
private $dbname = "lania_cc";
|
|
||||||
private $user = "root";
|
|
||||||
private $password = "password";
|
|
||||||
private $conexion;
|
|
||||||
|
|
||||||
|
|
||||||
public function conectar() {
|
|
||||||
$this->conexion = new mysqli($this->host, $this->user, $this->password, $this->dbname);
|
|
||||||
|
|
||||||
if ($this->conexion->connect_error) {
|
|
||||||
die('Error de conexión: ' . $this->conexion->connect_error);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->conexion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function cerrarConexion() {
|
|
||||||
if ($this->conexion) {
|
|
||||||
$this->conexion->close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
Loading…
Reference in New Issue