How to use ASP to write the website statistic System (c) (Transfer from Gaoshan)

Source: Internet
Author: User
Tags table name
Statistics how to use ASP to write Web site statistics System (III)

The design of the table structure is an extremely important work, and its reasonableness is closely related to the programming.
A website statistic system should have a user table, a table of statistics.
This user table is the table that keeps the registered user information, and the statistic table is the table that records the user's each statistic index value. In the table of statistics we can specify the user's statistics, we can use an ID value to represent each indicator, here we have a simple example.

User table:
Table name:regist_table

Field type
Username C User Name
Password C password
RegDate C Registration Time

Value table:
Table name:value_table
Field type
Username C User Name
ID C statistic Indicator ID
Value C Statistic Index

ID List:
Table name:id_table
Field type
ID C statistic Indicator ID
Description of Idvalue C statistical indicators

With these three tables, we can begin to do it.

If we can specify the following ID
ID idvalue
101 Total Traffic
201 1st Visit Volume
202 2nd Visit Volume
: :
: :
231 31st Visit Volume

To start the statistics for the user we have to register the user first, the user's use of the process is as follows:
Fill in the registry-> The initial user's value table (add the corresponding ID)-> Feedback the registration to the user
-> Users add links to their pages-> start counting.





Related Article

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.