diff --git a/Sources/php_script/script/insertAndMakeListUser.php b/Sources/php_script/script/insertAndMakeListUser.php index 8128ea4..0535ae3 100644 --- a/Sources/php_script/script/insertAndMakeListUser.php +++ b/Sources/php_script/script/insertAndMakeListUser.php @@ -35,10 +35,11 @@ function insertUserAndReturnList(): array|int idMusic varchar(100) NOT NULL, dateLog datetime NOT NULL );"; + mysqli_query($res, $query); + $query = "UPDATE gps SET latitude='0', longitude='0', idMusic='0' WHERE id='0'"; //Delete the actual line and replace this line with the next lines return (mysqli_query($res, $query)); - if (!empty($_POST)) { //Check if the method POST return something $id = $_POST['id']; //Get the result of POST method