/*这里的1指的是获取一条数据,2指的是从第二条开始获取*/ [e:loop={"select * from phome_ecms_news where classid='2' limit 1,2",1,24,0}]
/*下边这行代码只有在想获取详情的时候用到*/
<?php $fr=$empire->fetch1("select newstext from phome_ecms_news_data_{$bqr[stb]} where id='$bqr[id]'"); ?> <span><?=$fr[newstext]?></span>
<span><?=$bqr['title']?></span> [/e:loop]