hjkhjkjhkhjkgjghjhgjhgjghjhghjghjhgjjnbvnvbnvk
bnmbnmbnhjkhjkhjkhjktyutyutyuytutyutyutyhgjgjghjgjghjguytutyry
/
home
/
u932676976
/
domains
/
goldeninfradeveloper.com
/
public_html
/
manager
/
Upload FileeE
HOME
<?php include 'db.php'; date_default_timezone_set('Asia/Kolkata'); $date=date('Y-m-d H:i:s'); $dt=date('Y-m-d'); if(isset($_POST['plotupd'])){ $usercode=$_POST['usercode']; $name=$_POST['customer']; $plotcode=$_POST['plotno']; $tenureid=$_POST['tenureid']; $bbb="select * from tenure where tenureid='$tenureid'"; $bb=mysqli_query($con,$bbb); $b=mysqli_fetch_assoc($bb); $bdate=$b['dt']; $oldplotcode=$b['plotcode']; $ccc="INSERT INTO `plotupdaterecords`(`plotupdaterecordsid`, `date`, `dt`, `usercode`, `oldplotcode`, `newplotcode`, `tenureid`, `bookingdate`) VALUES ('','$date','$dt','$usercode','$oldplotcode','$plotcode','$tenureid','$bdate')"; $cc=mysqli_query($con,$ccc); if($cc){ $aaa="update tenure set plotcode='$plotcode' where tenureid='$tenureid' and usercode='$usercode'"; $d="update plot set availability='0' where plotcode='$oldplotcode'"; $dd="update plot set availability='1' where plotcode='$plotcode'"; $aa=mysqli_query($con,$aaa); if($aa){ mysqli_query($con,$d); mysqli_query($con,$dd); header('location:plotupdate.php'); } } } ?>