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