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:
Klaus-Uwe Mitterer 2016-08-09 20:20:41 +02:00
parent e56c0568b5
commit bf93fcd148

View file

@ -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) {