From bf93fcd1484cca61a40e7a4673b404f87ab1febe Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Tue, 9 Aug 2016 20:20:41 +0200 Subject: [PATCH] Export data by device in access.php, obviously only solves it for a single user installation, but still better than nothing --- access.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/access.php b/access.php index c6ead94..1883ffa 100644 --- a/access.php +++ b/access.php @@ -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) {