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


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

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

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