From c906dd0ba34f7a0b42b5d439ba2b1e33da35c3a0 Mon Sep 17 00:00:00 2001 From: Dorian HODIN Date: Mon, 28 Nov 2022 15:52:14 +0100 Subject: [PATCH] insertAndMakeListUser.php update --- Sources/php_script/script/insertAndMakeListUser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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