first commit
This commit is contained in:
@@ -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";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user