代碼如下:
[e:loop={'select * from phome_enewszt where classid=3 order by ztid desc',10,24,0}]
<li class="nopic"><span><?=format_datetime($bqr[addtime],'m-d')?>
</span><a href="<?=$bqr['ztpath']?>" title="<?=$bqr['ztname']?>"><?=$bqr['ztname']?></a></li>[/e:loop]
注:
默認phome_enewszt
使用時別忘記修改表的前綴phome_