1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<?php require("configure.php"); ?> <? $mainpageid = $_POST["mainpageid"]; $mainpagedesc = htmlspecialchars($_POST["mainpagedesc"], ENT_QUOTES); $mainpagetitle = htmlspecialchars($_POST["mainpagetitle"], ENT_QUOTES);
$sql = "update mainpage set mainpageid='$mainpageid', mainpagedesc='$mainpagedesc', mainpagetitle='$mainpagetitle' "; $sql .= "where mainpageid=". $mainpageid ." ";
mysql_query($sql); mysql_close($dbh);
header("Location: homemodifyform.php?mainpageid=1&msg=Update Successful"); ?>
|