帝国CMS最终栏目调用别名的两种方法!

2019-03-2519:12:48网站建设与开发Comments1,886 views字数 211阅读模式
Excerpt

 第一种:在最终栏目调用

第一种:在最终栏目调用文章源自菜鸟学院-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'];
?>
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/10341.html
  • 本站内容整理自互联网,仅提供信息存储空间服务,以方便学习之用。如对文章、图片、字体等版权有疑问,请在下方留言,管理员看到后,将第一时间进行处理。
  • 转载请务必保留本文链接:https://www.cainiaoxueyuan.com/cms/10341.html

Comment

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定