Display coordinates instead of binary point data
This commit is contained in:
parent
02b5770555
commit
2efc785c5b
@ -63,7 +63,10 @@ if (!TableExists($config["db_table"], $conn)) {
|
|||||||
echo $row["date_added"];
|
echo $row["date_added"];
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
echo $row["location"];
|
echo $row["Latitude"];
|
||||||
|
echo "</td>";
|
||||||
|
echo "<td>";
|
||||||
|
echo $row["Longtitude"];
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
echo "<img src=" . $row["url"] . ">";
|
echo "<img src=" . $row["url"] . ">";
|
||||||
@ -97,7 +100,7 @@ function addToTable($lat, $lon, $url, $table, $conn) {
|
|||||||
|
|
||||||
function getList($conn, $table) {
|
function getList($conn, $table) {
|
||||||
|
|
||||||
$sql = "SELECT * FROM `$table`;";
|
$sql = "SELECT *, X(location) as Longtitude, Y(location) as Latitude FROM `$table`;";
|
||||||
//print_r($sql);
|
//print_r($sql);
|
||||||
$res = mysqli_query($conn, $sql);
|
$res = mysqli_query($conn, $sql);
|
||||||
//($res) ? printf("true") : printf("false");
|
//($res) ? printf("true") : printf("false");
|
||||||
|
Loading…
Reference in New Issue
Block a user