Forums

ASP

This topic is locked

No ordinary hit counter to database...

Posted 02 Mar 2003 21:35:56
1
has voted
02 Mar 2003 21:35:56 Phil Cue posted:
Hi, 2 questions....

Question 1: How can I add a hidden 'hit counter' to a page that adds each hit on the page to a field in a record on a MYSQL database? So it can be viewed from the database when needed. I want to have a record of each hit to a page or site.

Question 2: How does DMXZone do it's 'Current people online?'

Cheers guys and gals.

Replies

Replied 02 Mar 2003 22:17:03
02 Mar 2003 22:17:03 johan tessens replied:
Hi for question 2, Your global.asa file will do the thrick.
If you dont have a global.asa file go to demo.biohazart.com/ud/test.asp

On your webpage use application("active" to show the active users

Edited by - biohazart on 02 Mar 2003 22:18:19
Replied 03 Mar 2003 00:39:37
03 Mar 2003 00:39:37 Jørgen Emerslund replied:
For nr.1:

I'll allow myself a little self-promoting here <img src=../images/dmxzone/forum/icon_smile_shy.gif border=0 align=middle>

At www.html-basics.com I'm going to, during the coming week, add a hit-counter which records the IP the hit came from, which page it's going from and to and when the hit happened...

You can choose to view to data log, or graphics which is what is left to be added. If this is something you'de like, I can probably have it done by, for instance, Wednesday?
Replied 03 Mar 2003 10:22:46
03 Mar 2003 10:22:46 Phil Cue replied:
Hmmm.. I put the global.asa in the web folder for the site and on the web page this: Current visitors:
&lt;%
application("active"
%&gt;

guess I'm doing something wrong....I've never tried this before, what am I doing wrong and can I do a 'Current visitors' for a particular page that is called from a MYSQL database?
For instance: www.mysite.com/test.asp?id=111

Thanks biohazart
Replied 03 Mar 2003 10:27:45
03 Mar 2003 10:27:45 Phil Cue replied:
That sounds like something I could use. I need to pull this data from a MYSQL database separately for each particular page that is called from a MYSQL database?

For instance: www.mysite.com/test.asp?id=111

Is that possible.....?

Tak for det Stanly, hav det godt (Danish a little rusty)

Reply to this topic