織夢cms經典SQL呼叫標籤程式碼_dedecms

小虎哥-技術部落格發表於2018-03-07

{dede:sql sql="select count(*) as c from #@__archives where channel=1"}共有文章:[field:c /]篇{/dede:sql}


{dede:sql sql="select count(*) as c from #@__archives where channel=2"}共有圖集:[field:c /]個{/dede:sql}


{dede:sql sql="select count(*) as c from #@__archives where channel=3"}共有軟體:[field:c /]個{/dede:sql}


{dede:sql sql="select count(*) as c from #@__feedback"}共有評論:[field:c /]條{/dede:sql}


{dede:sql sql="select count(mid) as c from #@__member"}共有會員:[field:c /]名{/dede:sql}


{dede:sql sql="SELECT count( * ) AS c FROM #@__archives WHERE pubdate > UNIX_TIMESTAMP( CURDATE( ) ) "}今日更新:[field:c /]篇{/dede:sql}


總共留言:{dede:sql sql="select count(*) as cc From #@__guestbook"}[field:cc/]{/dede:sql}條


{dede:sql sql="select sum(click) as c from #@__archives"}文章閱讀:[field:c /]人次{/dede:sql}

相關文章