Show this or that based on a timestamp / expiration.

Discussion in 'PHP' started by qwikad.com, Jun 29, 2014.

  1. #1
    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.
     
    qwikad.com, Jun 29, 2014 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,897
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #2
    if the timestamp + (60 * 24 * 60 * 60) < time() then it's been around more than 60 days
     
    sarahk, Jun 30, 2014 IP
  3. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,373
    Likes Received:
    1,720
    Best Answers:
    31
    Trophy Points:
    475
    #3
    Thank you. I didn't quite go that route, but you gave me an idea. Still working on it. I think it's going to work.
     
    qwikad.com, Jun 30, 2014 IP