$settings="active"; $caller1="open"; $staff_detil="active"; require_once '../template/superadmin/action_connection.php' ; include("../settings/adminsession.php"); session_start(); if($_REQUEST['idss']!='') { $ids1=$_REQUEST['status']; if($ids1==0) { $ids_m_k=1; } else { $ids_m_k=0; } echo $Query="UPDATE tbl_staff SET status='". $ids_m_k."' WHERE `id`='".$_REQUEST['idss']."'"; $DB->query($Query); header("location:view_staff_details.php?msg1=sucess"); } 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_staff where id='$id'"; $name_delete=$DB->query($Query_delete); header("location:view_staff_details.php?msg=sucess"); } ?>
S.No | Name | Status | ||
---|---|---|---|---|
echo $si=$si+1;?> | echo $rowsss['name'];?> | echo $rowsss['email_id'];?> | if($status==1) { ?> In Active } ?> if($status==0) { ?> Active } ?> |