文章類別管理頁面與文章管理頁面類似
<?php require_once(
<?php
//用於進行格式轉換的函數
function GetSQLValueString($theValue
$theNotDefinedValue =
{
$theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;
switch ($theType) {
case
$theValue = ($theValue !=
break;
case
case
$theValue = ($theValue !=
break;
case
$theValue = ($theValue !=
break;
case
$theValue = ($theValue !=
break;
case
$theValue = ($theValue !=
break;
}
return $theValue;
}
//插入操作
if ((isset($_POST[
{
// $insertSQL = sprintf(
// GetSQLValueString($_POST[
$insertSQL = sprintf(
SELECT MAX(type_id)+
GetSQLValueString($_POST[
GetSQLValueString($_SESSION[
mysql_select_db($database_conn
$Result
echo
}
//更新操作
if ((isset($_POST[
{
//驗證新type_id的有效性
$validateSQL = sprintf(
GetSQLValueString($_POST[
mysql_select_db($database_conn
$rs_validate_merge = mysql_query($validateSQL
$row_rs_validate_merge = mysql_fetch_assoc($rs_validate_merge);
right
From:http://tw.wingwit.com/Article/program/PHP/201311/21378.html