/var/www/(Del)pathways.org.hk/admin/productmodify.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php require("configure.php"); ?>
<?
$pagecontentid    
$_POST["pagecontentid"];
$catid            $_POST["catid"];
//$contenttitle    = $_POST["contenttitle"];
//$contenttitle    = str_replace("'", "\'",$contenttitle);
//$contenttitle    = str_replace("\"", "&quot;", $contenttitle);
//$contenttitle = htmlspecialchars($contenttitle, ENT_QUOTES);

//$pagecontentdesc    = $_POST["pagecontentdesc"];
$pagecontentdesc     preg_replace("/'/","\'",$_POST["pagecontentdesc"]);


$sql "update pagecontent set pagecontentid='$pagecontentid', catid='$catid', pagecontentdesc='$pagecontentdesc' ";
$sql .= " where pagecontentid='"$pagecontentid ."' ";
//echo $sql;
//exit;
mysql_query($sql);
mysql_close($dbh);

header("Location: categoriesindex.php?pid=$catid&msg=Modify Product Successful");
?>