关于网站页面点击的统计

来源:百度知道 编辑:UC知道 时间:2024/06/08 17:34:51
一个新闻系统.用的是ASP做的.
请教:有没有代码能统计每一条新闻的点击数.(注:不要第三方统计)
在数据库中已经定义了New_count来统计点击数.

可以在前面加上下面这语句:
<%

set rscount=conn.execute("select * from 表")
sql="UPDATE new SET count = count + 1 where
id="&request.querystring("id")
conn.execute (sql)
%>
...
...
...
<%
rs.close
set rs=nothing
%>

在每个页面加上一条 SQL 语句 ...

控制 New_count + 1 ...