test
continuous-integration/drone/push Build is passing Details

ServeurDeTest
nathan boileau 2 years ago
parent 4c69265925
commit 00706f4352

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

Loading…
Cancel
Save