注册
找回密码
账号 记住
3526
14
259
0
select TID,Title,Hits,FolderName from KS_Article p,KS_Class q where p.TID=q.ID and p.TID='{$CurrClassID}' order by p.Hits desc
{SQL_排行(当前栏目ID号)}
不知道行不行,自己试下吧~~
我用两个表可能跟别人不一样。呵呵。。不过也能做出来。
SQL:
select Title,Hits,FolderName from KS_Article p,KS_Class q where p.TID=q.ID order by p.Hits desc
FolderName是栏目名称
用SQL吧
select top 10 Title,Hits from KS_Article order by Hits desc