se elimio la carpeta php

This commit is contained in:
Hectorgh24 2025-05-05 09:52:08 -06:00
parent f8942a1d02
commit e82ec89051
1 changed files with 0 additions and 26 deletions

View File

@ -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();
}
}
}
?>