14 lines
260 B
PHP
14 lines
260 B
PHP
<?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";
|
|
}
|
|
}
|
|
?>
|