第一种:在最终栏目调用文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/10341.html
<?=$class_r[$GLOBALS[navclassid]][bname]?> |
第二种:万能的,哪里都行,应为是直接查询数据库输出的!文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/10341.html
<?php $cr=$empire->fetch1("select bname from phome_enewsclass where classid='".$GLOBALS[navclassid]."' limit 1"); echo $cr['bname']; ?> |