帝国cms 随机调用某个栏目或者当前栏目的文章

内容摘要
[e:loop={"select * from [!db.pre!]ecms_news where classid='$GLOBALS[navclassid]' order by rand() desc limit 10",12,24,0,'','newstime DESC&#3
文章正文
[e:loop={"select * from [!db.pre!]ecms_news where classid='$GLOBALS[navclassid]' order by rand() desc limit 10",12,24,0,'','newstime DESC'}]
 
                        <li>
                            <a href="<?=$bqsr['titleurl']?>" rel="bookmark" title="<?=$bqr['title']?>"><?=$bqr['title']?></a>
                        </li>
                         
[/e:loop]
代码注释

作者:喵哥笔记

IDC笔记

学的不仅是技术,更是梦想!