Dedecms common Statistics Code

Source: Internet
Author: User

Dedecms common Statistics Code

· A total of articles: **
{Dede: SQL = "select count (*) as c from dedede_archives where channel = 1"}. Articles in total: [field: c/] {/dede: SQL}
· A total of Atlas: **
{Dede: SQL = "select count (*) as c from dedede_archives where channel = 2"} · total Gallery: [field: c/] {/dede: SQL}
· A total of software: **
{Dede: SQL = "select count (*) as c from dedede_archives where channel = 3"} a total of software: [field: c/] {/dede: SQL}
· Comments: **
{Dede: SQL = "select count (*) as c from dede_feedback"}. Comments: [field: c/] {/dede: SQL}
· Total members: ** name
{Dede: SQL = "select count (mid) as c from dedede_member"}. Common member: [field: c/] name {/dede: SQL}
· Article reading: ** number of people
{Dede: SQL = "select sum (click) as c from dedede_archives"} reading: [field: c/] count {/dede: SQL}
· Updated today: **
{Dede: SQL = "SELECT count (*) AS c FROM dede_archives WHERE pubdate> UNIX_TIMESTAMP (CURDATE ()"} updated today: [field: c/] {/dede: SQL}
Total messages: {dede: SQL = "select count (*) as cc From dede_guestbook"} [field: cc/] {/dede: SQL}

I want you to calculate the data in dedecms, and the information will be much more N.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.