1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?php require("configure.php"); ?> <? $id = $_POST["id"];
$content = preg_replace("/'/","\'",$_POST["content"]); $contenttc = preg_replace("/'/","\'",$_POST["contenttc"]);
$sql = "update richtext set content='$content', contenttc='$contenttc' "; $sql .= "where id=". $id ." "; //echo $sql; mysql_query($sql); mysql_close($dbh);
header("Location: richtextmodifyform.php?id=$id&msg=Update Successful"); ?>
|