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");
if (!isset($_SESSION["cmslogin"])) { header("Location: login.php"); exit; }
$discatid = $_POST["discatid"]; $discatsort = htmlspecialchars($_POST["discatsort"], ENT_QUOTES); $discatname = htmlspecialchars($_POST["discatname"], ENT_QUOTES);
$sql = "update districtcat set discatid='$discatid', discatsort='$discatsort', discatname='$discatname' "; $sql .= "where discatid=" . $discatid . " ";
mysql_query($sql); mysql_close($dbh);
header("Location: districtcatindex.php?msg=Update Successful"); ?>
|