
<?php
include ('session.php');
include('connection.php');

$srno=$_POST['srno'];
$office=$_POST['office'];
$officer=$_POST['officer'];
$phone=$_POST['phone'];
$no=$_POST['no'];
$date=$_POST['date'];
$off_mar=$_POST['off_mar'];
$offr_mar=$_POST['offr_mar'];
$phone_mar=$_POST['phone_mar'];
$no_mar=$_POST['no_mar'];
$srno_mar=$_POST['srno_mar'];

//$res="UPDATE `administrate` SET `srno_marathi`='$srno_mar',`date`='$date',`office_name`='$office',`office_name_marathi`='$off_mar',`officer_name`='$officer',`officer_name_marathi`='$offr_mar',`phoneno`='$phone',`phone_marathi`='$phone_mar',`mobileno`='$no',`mobile_no_marathi`='$no_mar',`L_M_date`=NOW() WHERE `rank`='$srno'";
$res="UPDATE `administrate` SET `srno_marathi`='',`rank`='',`date`='$date',`office_name`='$office',`office_name_marathi`='$off_mar',`designation`='',`designation_marathi`='',`officer_name`='$officer',`officer_name_marathi`='$offr_mar',`phoneno`='$phone',`phone_marathi`='$phone_mar',`mobileno`='$no',`mobile_no_marathi`='$no_mar',`e-mail`='',`Status`='',`L_M_date`='' WHERE `srno`='$srno'";
//echo $res;

mysqli_query($GLOBALS["___mysqli_ston"], $res) or die ("Error Message5" . mysqli_error($GLOBALS["___mysqli_ston"]));
echo 1;


?>