<?php
include 'koneksi.php';
$nama = $_POST['nama_masjid']; $pic = $_POST['pic_masjid']; $alamat = $_POST['alamat']; $lat = $_POST['lat']; $lng = $_POST['lng'];
$sql = "INSERT INTO masjid (nama_masjid, pic_masjid, alamat, radius, lat, lng) VALUES ('$nama', '$pic', '$alamat', 500, '$lat', '$lng')";
if ($conn->query($sql) === TRUE) { echo "Sukses"; } else { echo "Error: " . $conn->error; }
$conn->close();
?>