/var/www/(Del)yuecreations.com.hk/webadmin/productdetail_delete.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<? require("configure.php"); ?>
<?
$ProductGradeId 
$_GET["ProductGradeId"];
$ProductId         $_GET["ProductId"];
$Sort             $_GET["Sort"];

$sql "DELETE FROM Product WHERE ProductId="$ProductId ." ";
mysql_query($sql);

//echo "UPDATE Product SET Sort = Sort-1 WHERE ProductGradeId = $ProductGradeId AND Sort >= $Sort ";
mysql_query("UPDATE Product SET Sort = Sort-1 WHERE ProductGradeId = $ProductGradeId AND Sort >= $Sort ");
mysql_close($dbh);

header("Location: productdetail_index.php?ProductGradeId=$ProductGradeId&msg=Update Successful");
?>