$caller_direct="active"; $caller1="open"; $caller_det_local="active"; require_once '../template/superadmin/action_connection.php' ; include("../settings/adminsession.php"); include '../../include/conf.php'; $datemal = date_default_timezone_set('Asia/Kolkata'); $dt2=date('Y-m-d'); session_start(); if($_REQUEST['id']!='') { $id=$_REQUEST['id']; //$Delete_Question = "DELETE FROM tbl_appointment WHERE `id`='$id'"; //$Result_Question = mysql_query($Delete_Question); $Query_delete = "DELETE from tbl_doctor_appointment_office where id='$id'"; $name_delete=$DB->query($Query_delete); header("location:view_available_time_direct.php?msg=sucess"); } if($_REQUEST['cancel_id']!='') { $id=$_REQUEST['cancel_id']; //$Delete_Question = "DELETE FROM tbl_appointment WHERE `id`='$id'"; //$Result_Question = mysql_query($Delete_Question); $Query_delete = "UPDATE tbl_doctor_appointment_office SET status='1' WHERE `id`='".$_REQUEST['cancel_id']."'"; $name_delete=$DB->query($Query_delete); header("location:view_available_time_direct.php?msg=sucess"); } ?>