{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}
{dede:sql sql="select count(*) as c from dede_archives where channel=3"}共有设计素材:[field:c /] 款{/dede:sql}
{dede:sql sql="select count(id) as c from dede_archives where pubdate > unix_timestamp(curdate())"}今日更新:[field:c /] 篇{/dede:sql}
{dede:sql sql="select count(id) as c from dede_feedback"}共产生了:[field:c /] 条评论{/dede:sql}
{dede:sql sql="select sum(click) as c from dede_archives"}您好!您是本站第:[field:c /] 客人!{/dede:sql}
织梦dedecms经常用到的内容统计代码SQL调用语句:
·共有文章:多少篇
{dede:sql sql="select count(*) as c from idea_archives where channel=1"}·共有文章:[field:c /]篇{/dede:sql}
·共有图集:多少个
{dede:sql sql="select count(*) as c from idea_archives where channel=2"}·共有图集:[field:c /]个{/dede:sql}
·共有软件:多少个
{dede:sql sql="select count(*) as c from idea_archives where channel=3"}·共有软件:[field:c /]个{/dede:sql}
·共有评论:多少条
{dede:sql sql="select count(*) as c from idea_feedback"}·共有评论:[field:c /]条{/dede:sql}
·共有会员:多少名
{dede:sql sql="select count(mid) as c from idea_member "}·共有会员:[field:c /]名{/dede:sql}
·文章阅读:多少人次
{dede:sql sql="select sum(click) as c from idea_archives"}文章阅读:[field:c /]人次{/dede:sql}
·今日更新:多少篇
{dede:sql sql="SELECT count( * ) AS c FROM idea_archives WHERE pubdate & gt; UNIX_TIMESTAMP( CURDATE( ) ) "}今日更新:[field:c /]篇{/dede:sql}
总共留言:{dede:sql sql="select count(*) as cc From idea_guestbook"}[field:cc/]{/dede:sql}条