refactor: migrate API scripts to a centralized directory and implement shared database configuration

This commit is contained in:
superbia-17
2026-06-12 23:54:55 +07:00
parent 4424a57a0d
commit 5f1da32298
4 changed files with 9 additions and 4 deletions
+14
View File
@@ -0,0 +1,14 @@
<?php
require_once __DIR__ . '/config.php';
$conn = getDB();
$id = $_POST['id'];
if ($id) {
$stmt = $conn->prepare("DELETE FROM worship_places WHERE id = ?");
$stmt->bind_param("i", $id);
if ($stmt->execute()) {
echo "Deleted";
}
}
?>