From fdd2a894fb96d405b3e1de75faa086c7447445c6 Mon Sep 17 00:00:00 2001 From: Thomas Chazot Date: Fri, 6 Jan 2023 15:50:49 +0100 Subject: [PATCH] modification index.php --- api-rest/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api-rest/index.php b/api-rest/index.php index 2fc7f5d..0f4611d 100644 --- a/api-rest/index.php +++ b/api-rest/index.php @@ -23,7 +23,6 @@ $username = getenv("MYSQL_USER_TOM"); $password = getenv("MYSQL_PASSWORD_TOM"); - echo $ini_array['dsn']; // Initializing Database try{ $database = new DatabaseConnection($dsn,$username,$password); @@ -32,6 +31,8 @@ header("HTTP/1.0 ".$e->getMessage()); http_response_code(600); // Quel code pour les erreurs PDO? } + + echo $database; // Initializing Gateways