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