Forums
This topic is locked
Count user to db
Posted 14 Oct 2004 16:29:14
1
has voted
14 Oct 2004 16:29:14 Christian Sen posted:
Is it possible to make a simple count to a logged in user to a field in the db?Thought it would be nice to show my logged in user how many times they have
visited, not using a huge load of programming, though.
I know this is possible, but can it be done fairly easy?
Regards, Sarre
Replies
Replied 15 Oct 2004 15:45:00
15 Oct 2004 15:45:00 Vince Baker replied:
Hi Sarre,
This is possible using the global.asa file located in the root of your site.
Do a search on google for global.asa user count and you should find loads or results.
(also check the archives here as I am sure this has been explained here before)
Regards
Vince
DMX Talkzone Manager
Visit my home: www.chez-vince.com
(Now completely CSS based and bye bye to all tables!)
VBScript | ASP | HTML | CSS | SQL | Oracle | Hosting
This is possible using the global.asa file located in the root of your site.
Do a search on google for global.asa user count and you should find loads or results.
(also check the archives here as I am sure this has been explained here before)
Regards
Vince
DMX Talkzone Manager
Visit my home: www.chez-vince.com
(Now completely CSS based and bye bye to all tables!)
VBScript | ASP | HTML | CSS | SQL | Oracle | Hosting
Replied 29 Oct 2004 11:02:56
29 Oct 2004 11:02:56 Janusz Jasinski replied:
Each time they log in, assuming you have created a field in the DB named 'logged-visits' or similar, all you'd do is add 1 everytime they logged in...
Yup - janusz.co.uk
Yup - janusz.co.uk
Replied 29 Oct 2004 13:50:16
29 Oct 2004 13:50:16 Ivo Hunink replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Each time they log in, assuming you have created a field in the DB named 'logged-visits' or similar, all you'd do is add 1 everytime they logged in...
Yup - janusz.co.uk
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Yeps, agree with this, just increase the number of loggons everytime.
As easy.
=)
Each time they log in, assuming you have created a field in the DB named 'logged-visits' or similar, all you'd do is add 1 everytime they logged in...
Yup - janusz.co.uk
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Yeps, agree with this, just increase the number of loggons everytime.
As easy.
=)
Replied 29 Oct 2004 23:20:08
29 Oct 2004 23:20:08 Christian Sen replied:
ok, it sounds easy guys, but I'm not sure how to implement the code that adds the number to the designated field in the db.
I have all the userinfo stored in the db for my users, so everything is set.
Any ideas for the code needed to add a number to the logon?
Reg, Sarre
Let's face it, designing is fun. Coding....not so fun.
I have all the userinfo stored in the db for my users, so everything is set.
Any ideas for the code needed to add a number to the logon?
Reg, Sarre
Let's face it, designing is fun. Coding....not so fun.