sid/manager/database.php

18 lines
304 B
PHP
Executable File

<?php
class DataBase{
/* ATTRIBUTS */
private $host;
private $dbname;
private $username;
private $password;
private $connection;
public function __construct($host, $dbname, $username, $password){
this->connection = new PDO("mysql:host=$host;dbname=$dbname", $username, $password);
}
}
?>