Add auto-import DB script and update connection fallback

This commit is contained in:
Nama Kamu
2026-06-11 14:30:22 +07:00
commit 2aa30691f1
44 changed files with 8042 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
include 'koneksi.php';
$nama = $_POST['nama'];
$lat = $_POST['lat'];
$lng = $_POST['lng'];
$stmt = $koneksi->prepare("INSERT INTO spbu (nama_spbu, lat, lng) VALUES (?, ?, ?)");
$stmt->bind_param("sdd", $nama, $lat, $lng);
echo $stmt->execute() ? "success" : "error";
?>