$totalRows_rs_upt_type = mysql_num_rows($rs_validate_merge);
if(($totalRows_rs_upt_type>
$_POST[
{
//更新articles並且刪除types
$updateSQL = sprintf(
type_id=%s
GetSQLValueString($_POST[
GetSQLValueString($_SESSION[
GetSQLValueString($_POST[
mysql_select_db($database_conn
$Result
//刪除
$deleteSQL = sprintf(
GetSQLValueString($_POST[
mysql_select_db($database_conn
$Result
echo
}
elseif($totalRows_rs_upt_type>
echo
\\n
}
else
{
//更新types
$updateSQL = sprintf(
type_id=%s
GetSQLValueString($_POST[
GetSQLValueString($_POST[
GetSQLValueString($_POST[
mysql_select_db($database_conn
$Result
//同時更新articles表中的相應記錄
$updateSQL = sprintf(
GetSQLValueString($_POST[
GetSQLValueString($_POST[
mysql_select_db($database_conn
$Result
echo
}
}
//刪除操作
if (isset($_GET[
{
$deleteSQL = sprintf(
GetSQLValueString($_GET[
mysql_select_db($database_conn
$Result
right
From:http://tw.wingwit.com/Article/program/PHP/201311/21379.html