织梦DEDECMS模板根据下级栏目获得顶级栏目名称的代码

织梦DEDECMS模板根据下级栏目获得顶级栏目名称的代码

SQL语句语句实现 {dede:field.typeid runphp=yes}$ID = @me; $sql = SELECT * FROM `dede_arctype` WHERE id=$ID;$query = mysql_query($sql);$row=mysql_fetch_array($query); $relID = $row[reid]; if($relID == 0) [email protected] = $row[typename];}else{$sql = SELECT...