1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?php require("configure.php"); ?> <? $catid = $_POST["catid"]; //$catname = $_POST["catname"]; $catname = htmlspecialchars($_POST["catname"],ENT_QUOTES); //$hyperlink = $_POST["hyperlink"];
$sortby = $_POST["sortby"]; $templateid = $_POST["templateid"];
$sql = "update categories set catid='$catid', catname='$catname', sortby='$sortby', templateid='$templateid' "; //if ($pageimage <> '') // $sql .= ", pageimage='$pageimage' "; $sql .= " where catid=". $catid ." "; mysql_query($sql); mysql_close($dbh);
header("Location: categoriesindex.php?pid=$catid&msg=Update Successful"); ?>
|