Upload semua tugas SIG

This commit is contained in:
Wilhelmus Ikchan Dwi Putra
2026-06-13 00:45:23 +07:00
commit c8e75593cb
361 changed files with 78622 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
// proses_spbu.php
$conn = new mysqli("localhost", "root", "", "db_tugas_1_sig");
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$nama_spbu = $_POST['nama_spbu'];
$status_24jam = $_POST['status_24jam'];
$alamat = $_POST['alamat'];
$geojson = $_POST['geojson'];
$sql = "INSERT INTO data_spbu (nama_spbu, status_24jam, alamat, geojson)
VALUES ('$nama_spbu', '$status_24jam', '$alamat', '$geojson')";
if ($conn->query($sql) === TRUE) {
echo "<script>alert('Titik SPBU Berhasil Ditambahkan!'); window.location='index.php';</script>";
} else {
echo "Error: " . $conn->error;
}
}
$conn->close();
?>