5tarl0rd

Current Path : /home/tiporg/public_html/manage/
Upload File :
Current File : /home/tiporg/public_html/manage/delete_news.php

<?php

include("classes/access_user_class.php"); 

header("Cache-Control: public");

$page_protect = new Access_user;

$page_protect->access_page(); 



if (isset($_GET['action']) && $_GET['action'] == "log_out") {

	$page_protect->log_out();

}

$response = new Response();

$message = array();

$sql = "delete from tbl_news where news_id = '".$_REQUEST['id']."'"; 

mysql_query($sql) or die(mysql_error());

$message = "News has been deleted successfully"; 

?>

<script>

	self.location = "news.php?mess=<?php echo $message; ?>";

	</script>	




5tarL0rd By 5tarl0rd Being Anonymous