/var/www/awintours.com/webadmin/news_delete.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
require 'check_login.php';
if (
$logged_in <> 1) {
    
header('Location: login.php');
    return;
}
else
{

require(
"configure.php");
$newsid         $_GET["newsid"];

// Delete db
mysql_query("DELETE FROM news WHERE newsid = ".$newsid." ");
if( 
mysql_errno() > ){
    echo 
'News Delete:<br />'mysql_error();
    exit;
}
mysql_close($dbh);

header("Location: news_index.php?msg=Update Successful");
}
?>