Initial Commit: Tugas Semua Pertemuan
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
include 'koneksi.php';
|
||||
|
||||
if(isset($_POST['id'])){
|
||||
$id = $_POST['id'];
|
||||
$stmt = $conn->prepare("DELETE FROM jalan WHERE id=?");
|
||||
$stmt->bind_param("i", $id);
|
||||
if($stmt->execute()){
|
||||
echo "success";
|
||||
} else {
|
||||
echo "MYSQL ERROR: " . $stmt->error;
|
||||
}
|
||||
$stmt->close();
|
||||
} else {
|
||||
echo "ID TIDAK DITEMUKAN";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user