...

View Full Version : show archives if date is after Now()



netcrawler
12-13-2004, 01:47 PM
:confused: How can i achive this:

I have a archive database and i want the achives to show up on the page if the date is after the end date.

The database is a employment database and it has a posting date on and a posting date off so when the date off is reached by the calendar the posting gose offline its then that i want it to show on the page as a linkable text stating that archives are available. Users will click the link and then that will bring them to the archives page.


I need a example script that will do that for me please.

Thanks.

ghell
12-13-2004, 03:52 PM
shouldnt this just be possible by doing
if rs("date") > now() then Response.Write rs("date")

or something o.O

Bullschmidt
12-31-2004, 01:07 AM
And here's an example setting a date range based on posted fields:

strSQL = "SELECT * FROM MyTable WHERE (TheDateField >= #" & Request.Form("MinDate") & "#) AND (TheDateField <= #" & Request.Form("MaxDate") & "#)"



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum