|
|
@ -2,7 +2,7 @@
|
|
|
|
$connect=""; //Else PHP send an error, "connect don't exist", but that work anyway, this is just to remove a fake error
|
|
|
|
$connect=""; //Else PHP send an error, "connect don't exist", but that work anyway, this is just to remove a fake error
|
|
|
|
$res=include "config.php"; //$res get the result of the calling of "config.php"
|
|
|
|
$res=include "config.php"; //$res get the result of the calling of "config.php"
|
|
|
|
if ($res != 1){ //Check if config.php work
|
|
|
|
if ($res != 1){ //Check if config.php work
|
|
|
|
print (json_encode("Failed to connect to MySQL")); //Return a json string, so the dart script can interpret the error
|
|
|
|
print (json_encode("Failed to connect to MySQL, connection timeout")); //Return a json string, so the dart script can interpret the error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!empty($_POST)) { //Check if the method POST return something
|
|
|
|
if (!empty($_POST)) { //Check if the method POST return something
|
|
|
|
$id = mysqli_real_escape_string($connect, $_POST['id']); //Get the result of POST method
|
|
|
|
$id = mysqli_real_escape_string($connect, $_POST['id']); //Get the result of POST method
|
|
|
|