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

[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) 替换

dawei

【声明】:乐山站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。