1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php require("configure.php");
$NewsId = $_GET["NewsId"];
// Delete db $sql = "DELETE FROM News WHERE NewsId=". $NewsId ." "; mysql_query($sql); if( mysql_errno() > 0 ){ echo 'News Delete Error:<br />'. mysql_error() .'<br />SQL: '. $sql; exit; }
mysql_close($dbh);
header("Location: news_index.php?msg=Delete Successful");
?>
|