From 688a2a307a2c95ad69a54ad6856160f9f033212a Mon Sep 17 00:00:00 2001 From: Dorian HODIN Date: Mon, 28 Nov 2022 11:24:17 +0100 Subject: [PATCH] config.php update --- Sources/php_script/script/config.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/php_script/script/config.php b/Sources/php_script/script/config.php index a32f9a3..5fdca5c 100644 --- a/Sources/php_script/script/config.php +++ b/Sources/php_script/script/config.php @@ -10,7 +10,6 @@ function connection(): bool|int|mysqli try { //Try to connect to the database - print(json_encode(mysqli_connect($host, $username, $password, $db_name))); return mysqli_connect($host, $username, $password, $db_name); //Connecting to database }catch (mysqli_sql_exception) { //If the connection failed @@ -20,7 +19,7 @@ function connection(): bool|int|mysqli } } -connection(); +print(connection());