1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<? require("configure.php"); ?> <? $HNewsId = $_GET["HNewsId"]; $Sort = $_GET["Sort"];
$sql = "DELETE FROM HomeNews WHERE HNewsId=". $HNewsId ." "; mysql_query($sql);
mysql_query("UPDATE HomeNews SET Sort = Sort-1 WHERE Sort >= $Sort "); mysql_close($dbh);
header("Location: homeitem_index.php?msg=Update Successful"); ?>
|