设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 创业者 手机 数据
当前位置: 首页 > 教程 > 正文

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

发布时间:2022-06-28 13:54 所属栏目:61 来源:互联网
导读:[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) 替换。
 
 

(编辑:ASP站长网)

    网友评论
    推荐文章
      热点阅读