$caller="active"; $caller1="open"; $appointment_detil="active"; require_once '../template/superadmin/action_connection.php' ; include("../settings/adminsession.php"); 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_appointment where id='$id'"; //$name_delete=$DB->query($Query_delete); //header("location:appointment_details.php?msg=sucess"); } ?> if($_REQUEST['idss']!='') { $idss=$_REQUEST['idss']; $Query="UPDATE tbl_appointment SET status='". $idss."' WHERE `id`='".$_REQUEST['id']."'"; $DB->query($Query); header("location:appointment_details.php?msg1=sucess"); } ?>