Initial commit WebGIS Poverty Mapping

This commit is contained in:
SatryaIrvannurYudha
2026-06-04 21:28:53 +07:00
commit fdf1e36cd3
18 changed files with 1333 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
include 'koneksi.php';
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$nama = mysqli_real_escape_string($conn, $_POST['nama']);
$wa = mysqli_real_escape_string($conn, $_POST['wa']);
$aktif = $_POST['aktif'];
$lat = $_POST['lat'];
$lng = $_POST['lng'];
$query = "INSERT INTO spbu (nama_spbu, no_wa, is_24jam, latitude, longitude)
VALUES ('$nama', '$wa', '$aktif', '$lat', '$lng')";
if (mysqli_query($conn, $query)) {
// Jika berhasil, balik lagi ke halaman peta
header("Location: index.php?status=sukses");
} else {
echo "Error: " . mysqli_error($conn);
}
}
?>