htaccess c'est vraiment de la merde

This commit is contained in:
Yass 2026-03-03 11:16:14 +01:00
parent 5638c0712d
commit 04d7d564f1
5 changed files with 15 additions and 14 deletions

View file

@ -11,13 +11,13 @@
try{
$this->_db = new PDO(
"mysql:host=localhost;dbname=projet_folliow",
"projet_user",
"F0lliowRules!",
"root",
"",
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) {
} catch(PDOException $e) {
echo "Échec : " . $e->getMessage();
}
}