Export data by device in access.php, obviously only solves it for a single user installation, but still better than nothing
This commit is contained in:
parent
e56c0568b5
commit
bf93fcd148
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ if ($conn->connect_error) {
|
|||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
|
||||
$sql = "SELECT ts, lat, lon FROM tracker ORDER BY ts ASC;";
|
||||
$sql = "SELECT ts, lat, lon FROM tracker WHERE device='" . $_GET["device"] . "' ORDER BY ts ASC;";
|
||||
$result = $conn->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
|
|
Loading…
Reference in a new issue