Initial commit WebGIS Poverty Mapping
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
include 'koneksi.php';
|
||||
|
||||
if (isset($_GET['id'])) {
|
||||
$id = mysqli_real_escape_string($conn, $_GET['id']);
|
||||
$query = "DELETE FROM spbu WHERE id='$id'";
|
||||
|
||||
if (mysqli_query($conn, $query)) {
|
||||
header("Location: index.php?status=terhapus");
|
||||
} else {
|
||||
echo "Gagal menghapus: " . mysqli_error($conn);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user