From 6ac7ad2eda646ae58c776b4a9b8bda7360d00426 Mon Sep 17 00:00:00 2001 From: Dorian HODIN Date: Thu, 24 Nov 2022 19:33:22 +0100 Subject: [PATCH] config.php update --- Sources/php_script/script/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/php_script/script/config.php b/Sources/php_script/script/config.php index 642e105..eacf1a1 100644 --- a/Sources/php_script/script/config.php +++ b/Sources/php_script/script/config.php @@ -6,7 +6,7 @@ $db_name=$_ENV("INNONDB_DATABASE"); try { //Try to connect to the database $connect = mysqli_connect($host, $username, $password, $db_name); //Connecting to database }catch (mysqli_sql_exception){ //If the connection failed - print(json_encode($host,$username,$password)); + print(json_encode(strval($host))); // print(json_encode("Failed to connect to MySQL, connection timeout")); //Return a json string, so the dart script can interpret the error exit(-1); //Send a return code as -1, so insert.php can know if the connection is successful }