Log in

View Full Version : Show this or that based on a timestamp / expiration.



qwikad.com
06-30-2014, 06:45 AM
I need to show two different things using an ad's $row['timestamp'] and $row['expireson']

This is what needs to happen: if an ad's duration is > 60 days show this. If it's <= 60 days show that.

Nile
06-30-2014, 09:17 PM
A simple if statement should do the job...? What's your variable that contains the "duration"? Or by duration do you mean time elapsed since $row['timestamp']?