DedeCMS网站信息(会员数,文章数等)调用代码 {dede:sql sql="select count(mid) as c from dede_member "}共有会员:[field:c /] 名{/dede:sql}
{dede:sql sql="SELECT count( ID ) AS c FROM dede_archives WHERE FROM_UNIXTIME( pubdate, ‘%m’ ) = month
(curdate( )) "} 本月更新:[field:c /] 篇{/dede:sql}
{dede:sql sql="select count(*) as c from dede_archives where channel=1"}共有文章:[field:c /] 篇
{/dede:sql}
如果本文对你有帮助,欢迎打赏本站