您的位置:学习中国 推荐教程 ASP编程 正文
原作者:knowsky 添加时间:2008-03-17 原文发表:2008-03-17 人气:18 来源:knowsky

本文章共3050字,分6页,当前第3页,快速翻页:
 


Response.Expires=0
'The directory where GIF bars are placed. Ends with \
workdir="c:\gifbars\"
'Set this to False if you want to disable auto inserting
'new counter records to database on every hit with unique

'id string
auto_insert=True
id=Trim(Request.QueryString("id"))
seq=Trim(Request.QueryString("seq"))
if seq="" then seq="default"
cells=Trim(Request.QueryString("cells"))
if cells="" then cells=5 else cells=cells*1
set conn=Server.CreateObject("ADODB.Connection")
conn.Open "Webcounter"
sql="select count,ident from main where id='" & id & "'"
set rs=conn.Execute(sql)
if not rs.EOF then
count=rs("count")+1
ident=rs("ident")
rs.close()
conn.Execute("update main set count=count+1 where ident=" & ident)
conn.close()
ShowNumbers()
else
rs.close()
if auto_insert=True and id< >"" then
conn.Execute("insert into main (id,count) values ('" & id & "',1)")
 
本文章更多内容<<上一页 - 1 - 2 - 3 - 4 - 5 - 6 - 下一页>>
本页地址
相关文章

用ASP编写图片计数器
ASP版Google pagerank查询系统(非偷取第三方
解决ASP导出查询结果到Excel中的身份证号问
ASP应用之模板采用
改进 ASP 的字符串处理性能
内置对象Session
Cookies讲座
使用ASP记录在线用户的数量
用ASP实现IE地址栏参数的判断
把网页中的电话号码生成图片的ASP程序
光线电子商务平台 V2008 企业版

相关评论


本文章所属分类:首页 推荐教程 ASP编程   ASP编程