| Linux in-mum-web1499.main-hosting.eu 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64 Path : /home/u901718425/domains/vtprealtypune.homes/public_html/ |
| Current File : /home/u901718425/domains/vtprealtypune.homes/public_html/submitpropertydelete.php |
<?php
include("config.php");
$pid = $_GET['id'];
$sql = "DELETE FROM property WHERE pid = {$pid}";
$result = mysqli_query($con, $sql);
if($result == true)
{
$msg="<p class='alert alert-success'>Property Deleted</p>";
header("Location:feature.php?msg=$msg");
}
else{
$msg="<p class='alert alert-warning'>Property Not Deleted</p>";
header("Location:feature.php?msg=$msg");
}
mysqli_close($con);
?>