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