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


1
2
3
4
5
6
7
8
9
10
11
12
13
<?php require("configure.php"); ?>
<?
$contactusId        
$_POST["contactusId"];
$contactusdesc     preg_replace("/'/","\'",$_POST["contactusdesc"]);

$sql "update contactus set contactusId='$contactusId', contactusdesc='$contactusdesc'";
$sql .= "where contactusId="$contactusId ." ";

mysql_query($sql);
mysql_close($dbh);

header("Location: contactusindex.php?msg=Update Successful");
?>