1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<? require("configure.php");
if (!isset($_SESSION["cmslogin"])) { header("Location: login.php"); exit; }
$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"); ?>
|