$sql1 = "update application set history='{$history}' where id='{$id}'"; mysql_query($sql1); $sql3 = "update notifications set notify_status='1' where fid='{$notice_id}'"; mysql_query($sql3); $sql4 = "insert into log (user_id,action,comment) values('" . $_SESSION['id'] . "','update','application_id={$ides}')"; mysql_query($sql4); if (!headers_sent()) { header('location: update_application.php?action=edit&id=' . $ides . ''); } else { echo "<script>\r\n\t\t\twindow.location.href='update_application.php?action=edit&id={$ides}'\r\n\t\t\t </script>"; } //header('location: update_application.php?action=edit&id='.$id.''); } if ($_GET['action'] == 'delete') { $id = $_REQUEST['notice_id']; $obj->delete_notification($id); } ?> <body> <?php include_once 'include/menu.php'; ?> <div class="content"> <div class="welcome"><h3>Welcome <?php echo $_SESSION['username']; ?> !</h3></div> <?php if ($_GET['action'] == 'snooze') { $id = $_GET['id'];