/var/www/(Del)yuecreations.com.hk/webadmin/aboutus_modify.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php require("configure.php");
 
$AboutusId             $_POST["AboutusId"];
$AboutusTitleen        htmlspecialchars($_POST["AboutusTitleen"],ENT_QUOTES);
$AboutusDescen        preg_replace("/'/","\'",$_POST["AboutusDescen"]);
$AboutusTitletc        htmlspecialchars($_POST["AboutusTitletc"],ENT_QUOTES);
$AboutusDesctc        preg_replace("/'/","\'",$_POST["AboutusDesctc"]);

//print_r($_POST);

// Modify 
$sql "update Aboutus set AboutusTitleen='$AboutusTitleen', AboutusDescen='$AboutusDescen', AboutusTitletc='$AboutusTitletc', AboutusDesctc='$AboutusDesctc' ";
$sql .= " where AboutusId="$AboutusId ." ";
mysql_query($sql);

if( 
mysql_errno() > ){
    echo 
'About Us Modify Error:<br />'mysql_error() .'<br />SQL: '$sql;
    exit;
}

    
mysql_close($dbh);

header("Location: aboutus_index.php?msg=Modify Successful");
?>