<?php require 'includes/db_connect.php'; ?>

<?php
$id = $_GET['id'];

$sql = "DELETE FROM houses WHERE id=$id";

if ($conn->query($sql)) {
    header("Location: house_numbering.php?msg=deleted");
    exit;
} else {
    echo "Error deleting record.";
}
?>
