前台调用代码:
复制代码 代码如下:
{php $ss='c-12-'}
{pc:get sql="select CONCAT('$ss',a.id) as idd,b.id,b.url,b.username,b.title,b.status,h.hitsid,h.dayviews FROM v9_py_data a,v9_py b,v9_hits h where CONCAT('$ss',a.id)=h.hitsid and b.status=99 and a.id=b.id order by h.dayviews desc" num="8" cache="3600" return="data"}
{loop $data $r}
{$r[dayviews]}<br>
{/loop}
{/pc}
注释:
1. $ss='c-12-'
12为模型id,请根据自己设定修改
2. v9_py_data a,v9_py b
以上为自定义模型,请根据自己设定修改