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(); } }