加入收藏 | 设为首页 | 会员中心 | 我要投稿 大连站长网 (https://www.0411zz.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 教程 > 正文

帝国CMS中不调用指定栏目的信息不调用屏蔽指定栏目内容

发布时间:2022-06-29 10:48:24 所属栏目:教程 来源:互联网
导读:[e:loop={select * from phome_ecms_news where title like %中国% and classid82 and checked=1 order by newstime desc limit 30,30,24,0}] lia href=?=$bqsr[titleurl]? target=_blank?=esub($bqr[title],36)?/a/li [/e:loop] 上面语句的意思为调用网站
     [e:loop={"select * from phome_ecms_news where title like '%中国%' and classid<>82 and checked=1 order by newstime desc limit 30",30,24,0}]

    <li><a href="<?=$bqsr[titleurl]?>" target="_blank"><?=esub($bqr[title],36)?></a></li> [/e:loop]  
 
     上面语句的意思为调用网站中包含“中国”2个字的信息,其中classid<>82 意思为不调用栏目ID为82内的文章。如果要屏蔽多个栏目可以用classid not in(82,83,84,85) 替换。
 
 

(编辑:大连站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!