很简单的,代码如下:

[e:loop={"select * from [!db.pre!]ecms_show_every where sid=".$navinfor[id]." order by id DESC limit 100",100,24,0}] 
[/e:loop]