<?php
include 'koneksi.php';
$id = $_POST['id'];
$lat = $_POST['lat'];
$lng = $_POST['lng'];
$sql = "UPDATE masjid SET lat='$lat', lng='$lng' WHERE id='$id'";
echo mysqli_query($conn, $sql) ? "Sukses" : "Gagal: " . mysqli_error($conn);
?>