On 18 Mar 2007 in macromedia.dreamweaver.appdev,
BurritoVictim wrote:
> I'm only assuming that you would enter the expiration
date in a
> column in the database table and then run a query that
compares the
> column date to today's date and if the comparison yields
some value,
> then the link is either displayed or it's not. Would
that be fair
> logic?
That would be fair logic.
> I'm really not sure how to approach this - is this
something that
> can be written in asp code or would this be more of a
server
> function ?
You'd write it in the SQL for the query:
SELECT field1, field2 FROM myTable WHERE expirationDate >
GETDATE()
The GETDATE() function assumes that you're using Microsoft
SQL Server;
you specified only "SQL", and that's the query language that
almost all
databases use.
--
Joe Makowiec
http://makowiec.net/
Email:
http://makowiec.net/email.php