si j'oublie tout aussi

This commit is contained in:
Yass 2026-03-03 11:16:46 +01:00
parent 04d7d564f1
commit 5d03bf936d

View file

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