Initial commit: Upload project WebGIS dengan tema Merah Putih

This commit is contained in:
2026-06-05 20:37:25 +07:00
commit 5857b15aec
28 changed files with 6445 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
<?php
include '../koneksi.php';
header('Content-Type: application/json');
$id = (int)($_POST['id'] ?? $_GET['id'] ?? 0);
if (!$id) { echo json_encode(['status'=>'error','message'=>'ID tidak valid.']); exit; }
try {
$pdo->prepare("DELETE FROM points WHERE id=?")->execute([$id]);
echo json_encode(['status'=>'success']);
} catch (PDOException $e) {
echo json_encode(['status'=>'error','message'=>$e->getMessage()]);
}
?>