From 2efc785c5ba2bff041a2b365ed6abda11ca840c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Mon, 16 May 2016 11:48:28 +0200 Subject: [PATCH] Display coordinates instead of binary point data --- blomzt/main.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/blomzt/main.php b/blomzt/main.php index c7f6557..e024621 100644 --- a/blomzt/main.php +++ b/blomzt/main.php @@ -63,7 +63,10 @@ if (!TableExists($config["db_table"], $conn)) { echo $row["date_added"]; echo ""; echo ""; - echo $row["location"]; + echo $row["Latitude"]; + echo ""; + echo ""; + echo $row["Longtitude"]; echo ""; echo ""; echo ""; @@ -97,7 +100,7 @@ function addToTable($lat, $lon, $url, $table, $conn) { function getList($conn, $table) { - $sql = "SELECT * FROM `$table`;"; + $sql = "SELECT *, X(location) as Longtitude, Y(location) as Latitude FROM `$table`;"; //print_r($sql); $res = mysqli_query($conn, $sql); //($res) ? printf("true") : printf("false");