| Current Path : /home/bolconlineco/public_html/coordinator/ |
| Current File : /home/bolconlineco/public_html/coordinator/delete_news.php |
<?php
ob_start();
session_start();
?>
<?php include('includes/header.php'); ?>
<?php
if(!isset($_SESSION['coordinator']) || $_SESSION['coordinatorrole'] != 2)
{
header("location:../index.php");
exit();
}
?>
<script language="javascript" src="includes/jquery.js"></script>
<div id="content">
<div id="frm" style="width:885px">
<?php
if(isset($_GET['id']))
{
$id = $_GET['id'];
$query = "delete from tbl_news where id='$id'";
$result = mysql_query($query) or die(mysql_error());
header("location:News.php?msg=Inserted Successfully");
exit();
}
?>
</div>
</div> <!-- end content -->
</div><!-- end wrapper -->
<?php include('../includes/footer.php');?>