1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?php require("configure.php"); ?> <? $contactusid = $_POST["contactusid"]; //$contactusdesc = $_POST["contactusdesc"]; $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: contactusmodifyform.php?msg=Update Successful"); ?>
|