<?
include_once("../includes/class_mysql.php");
include_once("../includes/config.php");
$db=new DB();
$db->connectdb(DB_NAME,DB_USER,DB_PASS);
$name=$_POST[name];
$seq=$_POST[seq];
$res = $db->add(TB_CATEGORY,array(
"name"=>"".$name."",
"seq"=>"".$seq.""
));
if($res){
echo "OK"."<br>";
echo "$res"."<br>";
echo "$name"."<br>";
}
$db->closedb();
?>
<a href="Edit.php">View files</a>
<Meta http-equiv="refresh"content="1;URL=Edit.php">
ไม่มีความคิดเห็น:
แสดงความคิดเห็น