/var/www/(Del)skdb.hk/admin/categoriesadd.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php require("configure.php"); ?>
<?
$pid            
$_POST["pid"];
$catname        $_POST["catname"];
//$catname        = str_replace("'", "\'",$catname);
//$catname        = str_replace("\"", "&quot;", $catname);
$link        $_POST["link"];
$templateid        $_POST["templateid"];
$sortby            $_POST["sortby"];


mysql_query("insert into categories (parentid, catname, sortby, templateid, link) values ('$pid', '$catname', $sortby, '$templateid', '$link')");
mysql_close($dbh);

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