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