2.5 应用举例 专题
灵动标签调用专题
[e:loop={'select * from [!db.pre!]enewszt where zcid=1 order by ztid limit 10',10,24,0}] <li> <a href="<?=$bqr[ztpath]?>" target="_blank"> <i><img src="<?=$bqr[ztimg]?>" ></i> <span><?=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsztinfo where ztid={$bqr['ztid']} ")?><?=$bqr[ztname]?></span> </a> </li>[/e:loop]
专题统计:
<?=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsztinfo where ztid={$bqr['ztid']} ")?>
- 上一篇
- 下一篇