1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<? require("configure.php"); ?> <? $catid = $_GET["catid"]; $parentid = $_GET["parentid"];
$sql = "DELETE FROM categories WHERE catid=". $catid ." "; //if ($parentid <> "") //$sql = "update categories set parentid='' where catid='". $catid ."' ";
mysql_query($sql); mysql_close($dbh);
//header("Location: categoriesindex.php?pid=$catid&msg=Update Successful"); header("Location: categoriesindex.php?pid=$parentid&msg=Update Successful"); ?>
|