From 5d03bf936d5cfdf30548e30321182dcde3c7b2bf Mon Sep 17 00:00:00 2001 From: Yass Date: Tue, 3 Mar 2026 11:16:46 +0100 Subject: [PATCH] si j'oublie tout aussi --- models/MotherModel.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/MotherModel.php b/models/MotherModel.php index 631221e..df9f2f7 100644 --- a/models/MotherModel.php +++ b/models/MotherModel.php @@ -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(); } }