This is a discussion on "[SOLVED] User Last Visit Status" within the Classic ASP section. This forum, and the thread "[SOLVED] User Last Visit Status are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] User Last Visit Status
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
[SOLVED] User Last Visit Status
I have this code with me since 1 years ago that are still not working.
It is about updating/setting a LastVisit date on the userlist table on my database. If the user successfully logged on to my page, the LastVisit field in my userlist table will be updated with the current date and time. Here is the flow of my login page: login.asp(login form) > verify.asp(login verification) > protectedpage.asp(successfull login) I do the update database process in my protectedpage.asp and here is the code:
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Last edited by Monie; Oct 2nd, 2007 at 03:03. |
|
|
|
#2
|
|||
|
|||
|
Re: User Last Visit Status
Looks like the connection string is not valid, i would rem out the update statement and just do a simple select statement and display a single field on the page.
also look here for more pointers - http://tutorials.aspfaq.com/8000xxxx...7d-errors.html Additionally i would not call a session variable "name" as it is a reserved name, i would suggest you use a naming convention for all session variables like "svName". Last edited by robbied72; Oct 2nd, 2007 at 09:18. |
|
#3
|
|||
|
|||
|
Re: User Last Visit Status
Thanks robbied, let me have a look at it tonight.
Thanks.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#4
|
|||
|
|||
|
Re: User Last Visit Status
I changed the way I connect to the database and the way I connect to my recordset and...
walla! I've don it!
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] User Location | Monie | Classic ASP | 3 | Jan 8th, 2008 00:55 |
| [SOLVED] Status bar - Firefox | alexgeek | Scripts and Online Services | 2 | Jan 3rd, 2008 01:32 |
| [SOLVED] Your last visit is Today?? | Monie | Classic ASP | 27 | Nov 1st, 2007 04:16 |
| [SOLVED] Show "Image" Depends On User "Status"? | Monie | Classic ASP | 6 | Oct 16th, 2007 01:22 |
| Display User Status? | Monie | Classic ASP | 17 | Oct 29th, 2004 04:18 |