From 3a28466b436432510696e65049aedeccaf09f151 Mon Sep 17 00:00:00 2001 From: Dorian HODIN Date: Tue, 29 Nov 2022 13:53:30 +0100 Subject: [PATCH] test.php and insertAndMakeListUser.php update --- .idea/sqldialects.xml | 1 + Sources/php_script/script/insertAndMakeListUser.php | 2 +- Sources/php_script/script/test.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.idea/sqldialects.xml b/.idea/sqldialects.xml index 8485c62..e2a1e75 100644 --- a/.idea/sqldialects.xml +++ b/.idea/sqldialects.xml @@ -2,5 +2,6 @@ + \ No newline at end of file diff --git a/Sources/php_script/script/insertAndMakeListUser.php b/Sources/php_script/script/insertAndMakeListUser.php index 0382e23..15e1423 100644 --- a/Sources/php_script/script/insertAndMakeListUser.php +++ b/Sources/php_script/script/insertAndMakeListUser.php @@ -47,7 +47,7 @@ function insertUserAndReturnList(): array|int $latitude = doubleval($latitude); //Convert a string to a double $longitude = doubleval($longitude); //Convert a string to a double - $query = "DELETE FROM gps WHERE (TIMESTAMPDIFF(MINUTE,dateLog,CURRENT_TIMESTAMP)<10;"; + $query = "DELETE FROM gps WHERE (TIMESTAMPDIFF(MINUTE,dateLog,CURRENT_TIMESTAMP)<10);"; mysqli_query($res, $query); $query = "SELECT id FROM gps WHERE id = '$id' "; diff --git a/Sources/php_script/script/test.php b/Sources/php_script/script/test.php index 56bd8ef..c5d8e17 100644 --- a/Sources/php_script/script/test.php +++ b/Sources/php_script/script/test.php @@ -4,7 +4,7 @@ include "config.php"; $res = connection(); -$query = "SELECT * FROM gps WHERE (TIMESTAMPDIFF(MINUTE,dateLog,CURRENT_TIMESTAMP)<10;"; +$query = "SELECT * FROM gps WHERE (TIMESTAMPDIFF(MINUTE,dateLog,CURRENT_TIMESTAMP)<10);"; $results = mysqli_query($res, $query);