$result = MySQLquery("insert into type ($fIElds) values ($values)"); ... endif; /* end save */
//分類上傳************************************************ if ($func=='createtype'):
//取得自己的 id $result = MySQLquery("select * from type order by id desc"); $num=MySQL_numrows($result); if (!empty($num)) { $cat = MySQL_result($result,0,"id"); } else { $cat=0; }
//判斷分類的狀態 if ($uid != 0) { $result=MySQL_query("select * from type where id=$uid"); $type=MySQL_result($result,0,"type"); $route_char=MySQL_result($result,0,"route_char"); } else { $type='父分類'; } echo "<FORM ACTION="$PHP_SELF?func=save" METHOD=POST>";