1、調用所有
[e:loop={"select * from {$dbtbpre}ecms_news_doc order by id desc limit 20",0,24,0}]
、
[/e:loop]
2、當前欄目或指定欄目
[e:loop={"select * from {$dbtbpre}ecms_news_doc where classid=$GLOBALS[navclassid] order by id desc limit 20",0,24,0}]
、
[/e:loop]
注釋:指定多個欄目用 classid=$GLOBALS[navclassid] 替換為 classid id (34,35,36,37))
3、調用指定信息
[e:loop={"select * from {$dbtbpre}ecms_news_doc where classid=34 and id=462 order by id desc limit 20",0,24,0}]
、
[/e:loop]
3、調用指定范圍的信息
[e:loop={"select * from {$dbtbpre}ecms_news_doc where id<=462 and id>=262 order by id desc limit 20",0,24,0}]
、
[/e:loop]
我們專注高端建站,小程序開發(fā)、軟件系統(tǒng)定制開發(fā)、BUG修復、物聯(lián)網(wǎng)開發(fā)、各類API接口對接開發(fā)等。十余年開發(fā)經(jīng)驗,每一個項目承諾做到滿意為止,多一次對比,一定讓您多一份收獲!