namespace de fait hehe

This commit is contained in:
Yasder5 2026-02-28 15:57:54 +01:00
parent 6c21a5f1cb
commit 0638834933
23 changed files with 131 additions and 81 deletions

View file

@ -1,20 +0,0 @@
<?php
class Connect {
protected $_db;
public function __construct(){
try{
$this->_db = new PDO(
"mysql:host=boulayoune.com;dbname=projet_folliow",
"projet_user",
"F0lliowRules!",
array(PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC)
);
$this->_db->exec("SET CHARACTER SET utf8");
$this->_db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch(PDOException$e) {
echo "Échec : " . $e->getMessage();
}
}
}