prepare("DELETE FROM properties WHERE id = :id"); $stmt->bindParam(':id', $id, PDO::PARAM_INT); $stmt->execute(); } catch (PDOException $e) { die("DB ERROR: " . $e->getMessage()); } header('Location: properties.php'); exit; ?>