帝国随机调用全站新闻
问:帝国随机调用全站新闻答:[ecmsinfo]"select * from zzarea_ecms_news order by rand() desc limit 6 ",6,18,1,24,11,1[/ecmsinfo]或者使用e:loop标签[e:loop={"select * from [!db.pre!]ecms_news order b
问:帝国随机调用全站新闻
答:[ecmsinfo]"select * from zzarea_ecms_news order by rand() desc limit 6 ",6,18,1,24,11,1[/ecmsinfo]
或者使用e:loop标签
[e:loop={"select * from [!db.pre!]ecms_news order by rand() limit 8",8,24,0}]
<a href="<?=$bqsr[titleurl]?>" target="_blank"><?=sub($bqr[title],0,38,false)?></a>
[/e:loop]
推荐阅读:
帝国CMS随机调用某几个栏目信息的实现代码
这个比较可靠 看一下
bjwjop评论Re:帝国随机调用全站新闻
找遍全网 感觉这个比较靠谱
qiangsho评论Re:帝国随机调用全站新闻