phpcms文章按點擊量排序方法,實例代碼如下:
- {get sql="selectd.contentid,d.hits,c.catid,c.title,c.thumb,c.url,c.description,c.inputtime from phpcms_content_count d left join phpcms_content c on d.contentid=c.contentid where c.status=99 $where order by d.hits desc" rows="21" page="$page"} //Vevb.com
by d.hits 意思就是按點擊排序,要想用GET,而卻想實現分頁的話,必須動態列表,生成靜態的列表是無法用GET的.
新聞熱點
疑難解答