Add files via upload

This commit is contained in:
Fernando Méndez
2021-04-13 17:19:12 +02:00
committed by GitHub
parent 9e9661e4f9
commit 9fa33c648d
4 changed files with 11 additions and 2 deletions

View File

@ -5,13 +5,14 @@
private const _SERVERNAME = "localhost";
private const _USERNAME = "sw";
private const _PASSWORD = "_admin_";
//private const _BD = "complucine";
private const _BD = "complucine";
//Atributes:
public $mysqli;
//Constructor:
public function __construct($bd_name){
if($bd_name == null) $bd_name = self::_BD;
try{
if (!$this->mysqli) {
$this->mysqli = new mysqli(self::_SERVERNAME, self::_USERNAME,