如何防止计数器刷新计数?
- 技术交流
- 2024-10-01 10:14:02
如何防止计数器刷新计数?
<%dim tms,counter,countlen
dim images(20)
h1="
If IsEmpty(Session("hasbeenConnected")) then
set rs=server.createobject("adodb.recordset")
application.lock
rs.open "update aspcount set countss=countss+1","dsn=userdbs",3,3
application.unlock
Session("hasbeenConnected")=True
End If
set rs=server.createobject("adodb.recordset")
rs.open "select * from aspcount","dsn=userdbs",3,3
rs.movefirst
counter=rs(0)
countlen=len(counter)
tms="
欢迎,您是第"&&counter&&"位来访者!
"response.write(tms)
for i=1 to countlen
images(i)=""
next
response.write images(1)&&images(2)&&images(3)&&images(4)&&images(5)&&images(6)&&images(7)
rs.Close
%>
[1]
如何防止计数器刷新计数?由讯客互联技术交流栏目发布,感谢您对讯客互联的认可,以及对我们原创作品以及文章的青睐,非常欢迎各位朋友分享到个人网站或者朋友圈,但转载请说明文章出处“如何防止计数器刷新计数?”