From 912b14e5b361748bf1c504745496e04ef0ac6fdd Mon Sep 17 00:00:00 2001 From: Anna BOUDOUL Date: Thu, 22 Dec 2022 20:50:22 +0100 Subject: [PATCH] correcting a few bugs --- config/config.php | 6 ++++-- controller/FrontCtrl.php | 2 +- index.php | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/config/config.php b/config/config.php index 126dc3f..99c30de 100644 --- a/config/config.php +++ b/config/config.php @@ -3,6 +3,8 @@ $rep=__DIR__.'/../'; - $con = new Connection('mysql:host=localhost;dbname=phpproject', 'nifranco', 'achanger'); - //$con = new Connection('mysql:host=localhost;dbname=dbanboudoul', 'anboudoul', 'achanger'); + //$con = new Connection('mysql:host=localhost;dbname=phpproject', 'nifranco', 'achanger'); + $con = new Connection('mysql:host=localhost;dbname=dbanboudoul', 'anboudoul', 'mdpMYSQL'); + + $TMessage = array(); ?> \ No newline at end of file diff --git a/controller/FrontCtrl.php b/controller/FrontCtrl.php index ba1f3cf..b6951e2 100644 --- a/controller/FrontCtrl.php +++ b/controller/FrontCtrl.php @@ -1,7 +1,7 @@