|
|
|
@ -12,13 +12,22 @@ Autoload::charger();
|
|
|
|
|
// $stm->execute();
|
|
|
|
|
|
|
|
|
|
// $res = $db->query('SELECT * FROM Utilisateur');
|
|
|
|
|
// // Select all the users in the database
|
|
|
|
|
// Select all the users in the database
|
|
|
|
|
// while ($row = $res->fetchArray()) {
|
|
|
|
|
// echo $row['email'] . " " . $row['password'] . " " . $row['pseudo'] . " " . $row['admin'] . " ";
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
echo "test";
|
|
|
|
|
try{
|
|
|
|
|
echo $test;
|
|
|
|
|
|
|
|
|
|
var_dump($dsn);
|
|
|
|
|
$db = new Connection($dsn);
|
|
|
|
|
var_dump($db);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
catch (Exception $e){ echo $e->getMessage();}
|
|
|
|
|
catch (Error $e2){ echo $e2->getMessage();}
|
|
|
|
|
echo "test2";
|
|
|
|
|
$control = new FrontController();
|
|
|
|
|
|
|
|
|
|