View Single Post
Old 2003-09-25, 08:05 PM   #2
matt
Trying is the first step towards failure
 
Join Date: Apr 2003
Location: Australia
Posts: 123
Send a message via ICQ to matt
If your database has a field for date added then you can, otherwise i'd say you're in trouble...

Without looking at what you've got you'll need to do three things:

1. check the date of the link addition. how you do it depends on whether you're using a database or txt file.

2. check the current date eg:

$current_date = gmstrftime('%m/%d/%y', strtotime("0 days"));

that needs to be modified depend on how the date is recorded for the added links.

3. create an if statement to compare the two dates and check if the date is within a certain timeframe eg. 7 days.


Unfortunately it's not going to be that easy for you to implement something like that nooze...


Good Luck!

Matt
__________________
Link List Land - Linklist Creation, Design and Implementation.
matt is offline   Reply With Quote