refactor: migrate API scripts to a centralized directory and implement shared database configuration
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user