Updating insertAndMakeListUser.php

remotes/origin/database-api-implementation
Dorian HODIN 2 years ago committed by felixmielcarek
parent 8faff77a5f
commit 92cca4c945

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="dataSourceStorageLocal" created-in="PS-222.4345.15">
<data-source name="@localhost" uuid="f334e98a-3c30-4412-8c71-35fe124ed605">
<database-info product="" version="" jdbc-version="" driver-name="" driver-version="" dbms="MARIADB" exact-version="0" />
<secret-storage>forget</secret-storage>
<schema-mapping />
</data-source>
</component>
</project>

@ -44,7 +44,7 @@ function insertUserAndReturnList(): array|int
$results = mysqli_query($connect, $query); $results = mysqli_query($connect, $query);
*/ */
$query = "SELECT id FROM gps WHERE id='$id'"; $query = "SELECT id FROM gps WHERE id = '$id' ";
$results = mysqli_query($res, $query); //Execute the SQL command $results = mysqli_query($res, $query); //Execute the SQL command
if (empty($results)){ if (empty($results)){
@ -78,7 +78,7 @@ function insertUserAndReturnList(): array|int
} }
} }
return $listUser; //Return an encode array in json, so flutter ca=n interpret it return $listUser; //Return an array
} else { //If the method POST return nothing } else { //If the method POST return nothing

Loading…
Cancel
Save