From 994ad4159367d8f4462a14bfad8499da71e7a735 Mon Sep 17 00:00:00 2001 From: Dorian HODIN Date: Wed, 23 Nov 2022 23:31:19 +0100 Subject: [PATCH] config.php update --- .idea/libraries/Dart_Packages.xml | 340 +++++++++++++-------------- .idea/libraries/Dart_SDK.xml | 38 +-- Sources/php_script/script/config.php | 1 - 3 files changed, 189 insertions(+), 190 deletions(-) diff --git a/.idea/libraries/Dart_Packages.xml b/.idea/libraries/Dart_Packages.xml index 04e2ec7..f8237c9 100644 --- a/.idea/libraries/Dart_Packages.xml +++ b/.idea/libraries/Dart_Packages.xml @@ -5,686 +5,686 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.idea/libraries/Dart_SDK.xml b/.idea/libraries/Dart_SDK.xml index 3dbed52..cb79f3d 100644 --- a/.idea/libraries/Dart_SDK.xml +++ b/.idea/libraries/Dart_SDK.xml @@ -1,25 +1,25 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/Sources/php_script/script/config.php b/Sources/php_script/script/config.php index eac23db..29a5493 100644 --- a/Sources/php_script/script/config.php +++ b/Sources/php_script/script/config.php @@ -6,7 +6,6 @@ $db_name="positiondaflmusic"; 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 - echo "

HEY

"; 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 }