Location: PHPKode > scripts > News Script > news-script/admin/deleteNews.php
<?php
require('../NewsScript.php');

if(is_numeric($_GET['id']))
{
	$news = new NewsScript();
	
	if($news->deleteNews($_GET['id']))
	{
		echo "Successfully Deleted Item: " . $_GET['id'];
	}
	else echo "Error deleting news item!";
}
?>
Return current item: News Script