帝国CMS灵动标签SQL直接调用广告位代码
以下代码给有需要的小伙伴一个参考!
用:select * from phome_enewsad where adid in (广告ID1,广告ID2,....)
实例:
[e:loop={"select * from phome_enewsad where adid in (1,2,3) order by adid desc limit 20",0,24}]
<a href="<?=$bqr[url]?>" target="_blank" title="<?=$bqr[title]?>"><img src="<?=$bqr[picurl]?>"><?=$bqr[picurl]?></a><br>
[/e:loop]