Login   Register  
PHP Classes
elePHPant
Icontem

File: admin/deleteNews.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 6 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!";
}
?>