remotes/origin/database-api-implementation
parent
10cf8b1bac
commit
4f19c821e3
@ -1,16 +0,0 @@
|
||||
<?php
|
||||
|
||||
|
||||
include "config.php";
|
||||
$res = connection();
|
||||
|
||||
$query = "SELECT id,TIMESTAMPDIFF(MINUTE,dateLog,NOW()) FROM gps ;";
|
||||
|
||||
$results = mysqli_query($res, $query);
|
||||
|
||||
while ($row = $results->fetch_row()) { //For all the row in the database
|
||||
|
||||
print($row[0]);
|
||||
print($row[1]); //Set $lat2 to the latitude of the user who is in the actual row
|
||||
//Set $lat2 to the latitude of the user who is in the actual row
|
||||
}
|
Loading…
Reference in new issue