/var/www/(Del)wah-tung.com/html/admin/aboutuscatmodify.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php require("configure.php"); ?>
<?
$aboutusId            
$_POST["aboutusId"];
$aboutusname        htmlspecialchars($_POST["aboutusname"],ENT_QUOTES);
$aboutusdesc         preg_replace("/'/","\'",$_POST["aboutusdesc"]);
$sortby                $_POST["sortby"];

$sql "update aboutus set aboutusId='$aboutusId', aboutusname='$aboutusname', aboutusdesc='$aboutusdesc', sortby='$sortby'";
$sql .= " where aboutusId="$aboutusId ." ";
mysql_query($sql);
mysql_close($dbh);

header("Location: aboutuscatindex.php?pid=$aboutusId&msg=Update Successful");
?>