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 