View Single Post
  #16 (permalink)  
Old Oct 25th, 2007, 09:10
Marc's Avatar
Marc Marc is offline
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
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!)

PHP: Select all


if($row['lastvisited'] == $todays_date) {
// The person did visit today
echo "Your last visit was Today - Welcome!";

} else {
// The person never visited today
echo "Your last visit was" $row['lastvisited'];

Please bear in mind this is the way i would do it in PHP so it probubly isnt right!!

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
Reply With Quote