/var/www/(Del)wah-tung.com/html/admin/categoriesmodifysc.php


1
2
3
4
5
6
7
8
9
10
11
12
13
<?php require("configure.php"); ?>
<?
$productId            
$_POST["productId"];
$productcatnamesc    htmlspecialchars($_POST["productcatnamesc"],ENT_QUOTES);
$sortby                $_POST["sortby"];

$sql "update product set productId='$productId', productcatnamesc='$productcatnamesc', sortby='$sortby'";
$sql .= " where productId="$productId ." ";
mysql_query($sql);
mysql_close($dbh);

header("Location: categoriesindexsc.php?pid=$productId&msg=Update Successful");
?>