Home > Backend Development > PHP Tutorial > 请问大家,现有一导航网站,如何统计单个网址的每天点击量?

请问大家,现有一导航网站,如何统计单个网址的每天点击量?

WBOY
Release: 2016-06-23 14:14:31
Original
1150 people have browsed it

请问大家,现有一导航网站,如何统计单个网址的每天点击量?


回复讨论(解决方案)

每个链接指定一个onclick,传一个参数,类似count.php?id=链接ID,在count.php里写上操作数据库,给ID加一次点击

------------------------------------------------------AutoCSDN签名档------------------------------------------------------

码农场??码农播种代码、放牧思想的农场! 

每个链接指定一个onclick,传一个参数,类似count.php?id=链接ID,在count.php里写上操作数据库,给ID加一次点击

------------------------------------------------------AutoCSDN签名档------------------------------------------------------

码农场??码农播种代码、放牧思想的农场! 

这些网址链接都是些外链的。按您的思路,倒是可以通过JS传值,然后ajax传值到后台。
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template