加入收藏 设为首页 会员中心 我要投稿 RSS
您当前的位置:首页 > 帝国CMS

帝国CMS调用当前栏目下的栏目简介等信息

时间:2023-12-27 18:07:13  来源:  作者:

(一)、当前栏目ID或专题ID:$GLOBALS[navclassid]
通过这个变量可以输出这个栏目id的所有数据(如:select * from phome_enewsclass where classid='$GLOBALS[navclassid]')
(二)、使用范例:调用当前栏目下的栏目简介。
用SQL标签调用:
[e:loop={"select intro from phome_enewsclass where classid='$GLOBALS[navclassid]'",1,24,0}]
<?=$bqr[intro]?>
[/e:loop]
或用PHP调用:
<?php
$cr=$empire->fetch1("select intro from phome_enewsclass where classid='$GLOBALS[navclassid]'");
echo $cr[intro];
?>

 


来顶一下
返回首页
返回首页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
推荐资讯
相关文章
栏目更新
栏目热门