Upload files to "/"

This commit is contained in:
2026-06-10 21:04:40 +00:00
parent 036135d48d
commit a243905fd0
5 changed files with 234 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
include 'koneksi.php';
$nama = $_POST['nama_spbu'];
$wa = $_POST['no_wa'];
$buka = $_POST['buka_24jam'];
$lat = $_POST['latitude'];
$lng = $_POST['longitude'];
$query = "INSERT INTO spbu (nama_spbu, no_wa, buka_24jam, latitude, longitude)
VALUES ('$nama','$wa','$buka','$lat','$lng')";
if(mysqli_query($conn, $query)){
echo "success";
}else{
echo "error";
}
?>
+15
View File
@@ -0,0 +1,15 @@
<?php
include 'koneksi.php';
$type = $_POST['type'];
$geometry = $_POST['geometry'];
$query = "INSERT INTO geometri (type, geometry)
VALUES ('$type', '$geometry')";
if(mysqli_query($conn, $query)){
echo "success";
}else{
echo "error";
}
?>
+11
View File
@@ -0,0 +1,11 @@
<?php
include 'koneksi.php';
$nama = $_POST['nama_jalan'];
$status = $_POST['status_jalan'];
$panjang = $_POST['panjang'];
$geo = $_POST['geometry'];
mysqli_query($conn, "INSERT INTO jalan (nama_jalan, status_jalan, panjang, geometry)
VALUES ('$nama','$status','$panjang','$geo')");
?>
+10
View File
@@ -0,0 +1,10 @@
<?php
include 'koneksi.php';
$status = $_POST['status_tanah'];
$luas = $_POST['luas'];
$geo = $_POST['geometry'];
mysqli_query($conn, "INSERT INTO parsil (status_tanah, luas, geometry)
VALUES ('$status','$luas','$geo')");
?>
+180
View File
File diff suppressed because one or more lines are too long