列表模板中,帝国没有相应的标签调用栏目的别名,只能调用栏目名称 别名在数据库字段中是bname 下面将用PHP查询的方式把别名查询出来!下面是例子,希望对大家有用! <?php $cr=$empire->fetch1("select classid,classname,bname from {$dbtbpre}enewsclass where classid='".$GLOBALS[navclassid]."' limit 1"); echo.$cr['bname']; ?>
发表评论