13 lines
265 B
PHP
13 lines
265 B
PHP
<?php
|
|
$conn = new mysqli("localhost", "root", "", "gis_project");
|
|
|
|
$id = $_POST['id'];
|
|
|
|
if ($id) {
|
|
$stmt = $conn->prepare("DELETE FROM worship_places WHERE id = ?");
|
|
$stmt->bind_param("i", $id);
|
|
if ($stmt->execute()) {
|
|
echo "Deleted";
|
|
}
|
|
}
|
|
?>
|