/var/www/muaythai.com.hk/webadmin/categoriesmodify.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php require("configure.php"); ?>
<?
$catid            
$_POST["catid"];
$catname        htmlspecialchars($_POST["catname"], ENT_QUOTES);

$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");
?>