diff --git a/.idea/libraries/Dart_Packages.xml b/.idea/libraries/Dart_Packages.xml new file mode 100644 index 0000000..fc497d8 --- /dev/null +++ b/.idea/libraries/Dart_Packages.xml @@ -0,0 +1,724 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Dart_SDK.xml b/.idea/libraries/Dart_SDK.xml index b6e6985..cb79f3d 100644 --- a/.idea/libraries/Dart_SDK.xml +++ b/.idea/libraries/Dart_SDK.xml @@ -1,25 +1,25 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/Sources/php_script/script/insertAndMakeListUser.php b/Sources/php_script/script/insertAndMakeListUser.php index 899efa4..4558869 100644 --- a/Sources/php_script/script/insertAndMakeListUser.php +++ b/Sources/php_script/script/insertAndMakeListUser.php @@ -33,7 +33,7 @@ function insertUserAndReturnList(): array|int latitude double NOT NULL, longitude double NOT NULL, idMusic varchar(100) NOT NULL, - dateLog datetime NOT NULL + dateLog date NOT NULL );"; mysqli_query($res, $query); @@ -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($connect, $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 686e8d5..58af621 100644 --- a/Sources/php_script/script/test.php +++ b/Sources/php_script/script/test.php @@ -1,7 +1,13 @@ fetch_row()) { //For all the row in the database + + print($row[0]); //Set $lat2 to the latitude of the user who is in the actual row