From 4c69265925f6232095b2f88bd58485f427776d2f Mon Sep 17 00:00:00 2001 From: nathan boileau Date: Fri, 25 Nov 2022 19:01:18 +0100 Subject: [PATCH] test --- WEB/index.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/WEB/index.php b/WEB/index.php index ec509317..9863c515 100644 --- a/WEB/index.php +++ b/WEB/index.php @@ -5,8 +5,11 @@ Autoload::charger(); $db = new Connection(); $db->exec("INSERT INTO Utilisateur VALUES ('e','e','e', false)"); -$res = $db->exec('SELECT * FROM Utilisateur'); -echo $res ; +// Print out the entire list of people. +$res = $db->query('SELECT * FROM Utilisateur'); +while ($row = $res->fetchArray(SQLITE3_ASSOC)) { + echo $row['email'] . "\n"; +} // $control = new FrontController();