PHP Classes

File: admin/deleteNews.php

Recommend this page to a friend!
  Classes of Andrew   News Script   admin/deleteNews.php   Download  
File: admin/deleteNews.php
Role: Application script
Content type: text/plain
Description: Deletes news items
Class: News Script
Manage and publish news stored in a MySQL database
Author: By
Last change:
Date: 15 years ago
Size: 247 bytes
 

Contents

Class file image Download
<?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!";
}
?>