Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Chanond #1
Help me! Counter
I use Dreamweaver for created asp page.i'm test alredy.It no error.But can't
update recordset
Please he me.
or you can download code here >>> [url]http://www.genzapeach.com/shopping.rar[/url]
<%@LANGUAGE="VBSCRIPT" CODEPAGE="874"%>
<!--#include file="Connections/conn_shopping.asp" -->
<%
Dim rsCounter
Dim rsCounter_numRows
Set rsCounter = Server.CreateObject("ADODB.Recordset")
rsCounter.ActiveConnection = MM_conn_shopping_STRING
rsCounter.Source = "SELECT * FROM countonline"
rsCounter.CursorType = 0
rsCounter.CursorLocation = 2
rsCounter.LockType = 1
rsCounter.Open()
rsCounter_numRows = 0
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
</head>
<body>
<p>
<%
counter = rsCounter("count_num")
if Session("visitor") = " " Then
counter = counter + 1
rsCounter("count_num") = counter
rsCounter.Update
Session("Visitor") = counter
Session.Timeout = 1
End if
%>
</p>
<%
Response.Write counter
%>
</body>
</html>
<%
rsCounter.Close()
Set rsCounter = Nothing
%>
Chanond Guest
-
RFC: DBIx::Counter - persistent counter class
Hi, I've been a CPAN consumer for so long, I thought it's about time to start contributing. I wrote a little module that does exactly the same as... -
Free Network Tools - Random Password Generator - Link Counter - Hit Counter
Free Network Tools - Random Password Generator - Link Counter - Hit Counter http://www.sharewareisland.com/onlinetools.asp -
hit counter or page counter
Hi, I need to have a page counter to see how many people access my website. How can this be done? In FrontPage, it's called hit counter. Thanks. -
hit counter
How can I add a hit counter to my web site created in Publisher? -
how do I add a hit counter?
I have published a website using MS Publisher 200, and I can't figure out how to pu t asimple hit counter on my home page....I don't want to... -
Paul Whitham TMM #2
Re: Help me! Counter
You only have a select statement on the code page. You also need an update
statement to process the changes you have made.
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"Chanond" <webforumsuser@macromedia.com> wrote in message
news:d2s35n$1a$1@forums.macromedia.com...can't> I use Dreamweaver for created asp page.i'm test alredy.It no error.But> update recordset
> Please he me.
> or you can download code here >>> [url]http://www.genzapeach.com/shopping.rar[/url]
>
>
> <%@LANGUAGE="VBSCRIPT" CODEPAGE="874"%>
> <!--#include file="Connections/conn_shopping.asp" -->
> <%
> Dim rsCounter
> Dim rsCounter_numRows
>
> Set rsCounter = Server.CreateObject("ADODB.Recordset")
> rsCounter.ActiveConnection = MM_conn_shopping_STRING
> rsCounter.Source = "SELECT * FROM countonline"
> rsCounter.CursorType = 0
> rsCounter.CursorLocation = 2
> rsCounter.LockType = 1
> rsCounter.Open()
>
> rsCounter_numRows = 0
> %>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <title>Untitled Document</title>
> <meta http-equiv="Content-Type" content="text/html; charset=windows-874">
> </head>
>
> <body>
> <p>
> <%
> counter = rsCounter("count_num")
> if Session("visitor") = " " Then
> counter = counter + 1
> rsCounter("count_num") = counter
> rsCounter.Update
> Session("Visitor") = counter
> Session.Timeout = 1
> End if
> %>
> </p>
> <%
> Response.Write counter
> %>
> </body>
> </html>
> <%
> rsCounter.Close()
> Set rsCounter = Nothing
> %>
>
Paul Whitham TMM Guest



Reply With Quote

