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