$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>";