Click links to count clicks

Source: Internet
Author: User
I want to ask you, I now want to do a click on the link and then count the number of clicks, the function has been realized, but now to be counted on a daily basis, the first day after the statistics, keep the data, the next day and then insert a data to continue to statistics, do you have any good way?


Reply to discussion (solution)

Put the statistics table, add a date field! Then click to add a block, update the current date of the record of the number of hits, if not, insert 1 new records, hit number 1

The link suffix is added directly to the current time, as in the form: http://localhost/a.php?&time=2013-12-20,
When clicking on the link, the parameters are saved in the database, when statistics are needed, the time statistics of the database can be saved directly.

  • 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.