This is a discussion on "[SOLVED] Your last visit is Today??" within the Classic ASP section. This forum, and the thread "[SOLVED] Your last visit is Today?? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Your last visit is Today??
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
[SOLVED] Your last visit is Today??
Just wondering how to do that?
Instead of displaying today's date, it display "Today". Thanks..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|
|
#2
|
||||
|
||||
|
Re: Your last visit is Today??
It will be a little IF function... I guess but i am no PHP expert
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
|
#3
|
|||
|
|||
|
Re: Your last visit is Today??
Yeah ... I would use a simple IF function that IF the date is today, then display Today.
|
|
#4
|
||||
|
||||
|
Re: Your last visit is Today??
PHP-section?
If you have any code I might be able to edit it for you.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#5
|
|||
|
|||
|
Re: Your last visit is Today??
monie usually posts in the ASP section ... but he didn't specify so I left it here.
|
|
#6
|
|||
|
|||
|
Re: Your last visit is Today??
Surely a cookie must be set so it knows when you last logged in
|
|
#7
|
||||
|
||||
|
Re: Your last visit is Today??
By my reckoning monie never asked how the login works.. He asks how it displays today instead of the date.... Thus uses an IF function....
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
|
#8
|
|||
|
|||
|
Re: Your last visit is Today??
Quote:
I was just thinking if you hadn't logged for a few days, how it knows when you last logged in |
|
#9
|
||||
|
||||
|
Re: Your last visit is Today??
It would then probubly use a Cookie... No, not a chocolate chip one
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
|
#10
|
||||
|
||||
|
Re: Your last visit is Today??
Its a bit of php script that uses the server calendar to determine what day it is.
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
|
|
#11
|
|||
|
|||
|
Re: Your last visit is Today??
Quote:
I think, either way, the solution would be almost similar, right? Quote:
It's because I don't know if this is done with asp or javascript or maybe php. So I post it here. Could you move this thread to the ASP section karinne, thanks. Quote:
Logout page:
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#12
|
|||
|
|||
|
Re: Your last visit is Today??
Quote:
|
|
#13
|
|||
|
|||
|
Re: Your last visit is Today??
yeah, I heard you say that before! I can't remember where? lol..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#14
|
||||
|
||||
|
Re: Your last visit is Today??
Jacob's thread.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#15
|
|||
|
|||
|
Re: Your last visit is Today??
Ohh yeah...
Ok back to topic guys.. Quote:
Hemmm....
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#16
|
||||
|
||||
|
Re: Your last visit is Today??
This is PHP but it will maybey give you the layout!! I am no expert!! (I know you want it in ASP but it might give you a rough way how to do it!)
Also i havent included the select statement - you probubly know how to do it..... Ignore $row['lastvisited'] - that would be the way i was doing it if i was using PHP - instead use your variable for getting the date from the database. Hope that helps bearing in mind i done it in PHP - not ASP
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
|
#17
|
|||
|
|||
|
Re: Your last visit is Today??
Quote:
it only check |