diff --git a/WEB/index.php b/WEB/index.php index 9863c515..aaa7f75a 100644 --- a/WEB/index.php +++ b/WEB/index.php @@ -4,13 +4,15 @@ require_once('./Config/Autoload.php'); Autoload::charger(); $db = new Connection(); -$db->exec("INSERT INTO Utilisateur VALUES ('e','e','e', false)"); -// Print out the entire list of people. +//Insert a new user in the database +$db->exec('INSERT INTO Utilisateur VALUES ("e","e","e", false)'); +//Select all users in the database $res = $db->query('SELECT * FROM Utilisateur'); while ($row = $res->fetchArray(SQLITE3_ASSOC)) { echo $row['email'] . "\n"; } + // $control = new FrontController();