diff --git a/.idea/dataSources/f334e98a-3c30-4412-8c71-35fe124ed605.xml b/.idea/dataSources/f334e98a-3c30-4412-8c71-35fe124ed605.xml index 51b344b..b6cbbc9 100644 --- a/.idea/dataSources/f334e98a-3c30-4412-8c71-35fe124ed605.xml +++ b/.idea/dataSources/f334e98a-3c30-4412-8c71-35fe124ed605.xml @@ -1,10 +1,7 @@ - - lower/lower - 10.4.25 - + diff --git a/Sources/php_script/script/insertAndMakeListUser.php b/Sources/php_script/script/insertAndMakeListUser.php index 72cfdee..8128ea4 100644 --- a/Sources/php_script/script/insertAndMakeListUser.php +++ b/Sources/php_script/script/insertAndMakeListUser.php @@ -28,15 +28,16 @@ function insertUserAndReturnList(): array|int if (strcmp(gettype($res),"integer")==0) { return 2; } - $query = "CREATE TABLE IF NOT EXISTS gps ( id varchar(30) PRIMARY KEY, latitude double NOT NULL, longitude double NOT NULL, idMusic varchar(100) NOT NULL, dateLog datetime NOT NULL - );" - $results = mysqli_query($res, $query); + );"; + + return (mysqli_query($res, $query)); + if (!empty($_POST)) { //Check if the method POST return something