insertAndMakeListUser.php update
continuous-integration/drone/push Build is passing Details

remotes/origin/mvc-implementation
Dorian HODIN 2 years ago
parent 21745038ca
commit c906dd0ba3

@ -35,10 +35,11 @@ function insertUserAndReturnList(): array|int
idMusic varchar(100) NOT NULL, idMusic varchar(100) NOT NULL,
dateLog datetime 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)); return (mysqli_query($res, $query));
if (!empty($_POST)) { //Check if the method POST return something if (!empty($_POST)) { //Check if the method POST return something
$id = $_POST['id']; //Get the result of POST method $id = $_POST['id']; //Get the result of POST method

Loading…
Cancel
Save