add file
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
include 'db.php';
|
||||
$id = (int)($_GET['id'] ?? 0);
|
||||
if ($conn->query("DELETE FROM jalan WHERE id=$id")) {
|
||||
echo json_encode(['success' => true]);
|
||||
} else {
|
||||
echo json_encode(['success' => false, 'error' => $conn->error]);
|
||||
}
|
||||
Reference in New Issue
Block a user