$caller="active"; $caller1="open"; $appoint="active"; require_once '../template/superadmin/action_connection.php' ; include("../settings/adminsession.php"); session_start(); ?> if($_REQUEST['id']!='') { $update_option =1; } ?> if(isset($_POST['Submit'])) { $id = $_POST['get_id']; $date = date('Y-m-d', strtotime($_POST['from_date'])); $Query="update tbl_appointment_office set appointment_date = '$date' where id='$id'"; $DB->query($Query); $flag="sucess"; header("location:appointment_details_direct.php"); } ?>