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");