域名預(yù)訂/競(jìng)價(jià),好“米”不錯(cuò)過(guò)
1、調(diào)用所有
[e:loop={"select * from {$dbtbpre}ecms_news_doc order by id desc limit 20",0,24,0}]
、
[/e:loop]
2、當(dāng)前欄目或指定欄目
[e:loop={"select * from {$dbtbpre}ecms_news_doc where classid=$GLOBALS[navclassid] order by id desc limit 20",0,24,0}]
、
[/e:loop]
注釋?zhuān)褐付ǘ鄠€(gè)欄目用 classid=$GLOBALS[navclassid] 替換為 classid id (34,35,36,37))
3、調(diào)用指定信息
[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、調(diào)用指定范圍的信息
[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]
轉(zhuǎn)載:非常歡迎各位朋友分享到個(gè)人站長(zhǎng)或者朋友圈,但轉(zhuǎn)載請(qǐng)說(shuō)明文章出處“黎青松SEO博客”。
原文地址:http://www.alitaohuo.com/CMSjiaocheng/diguojiaocheng/1910.html
申請(qǐng)創(chuàng)業(yè)報(bào)道,分享創(chuàng)業(yè)好點(diǎn)子。點(diǎn)擊此處,共同探討創(chuàng)業(yè)新機(jī)遇!