Results 1 to 2 of 2

Thread: Show this or that based on a timestamp / expiration.

  1. #1
    Join Date
    Oct 2012
    Posts
    180
    Thanks
    22
    Thanked 1 Time in 1 Post

    Default Show this or that based on a timestamp / expiration.

    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.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    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']?
    Jeremy | jfein.net

Similar Threads

  1. Replies: 3
    Last Post: 12-19-2013, 12:59 AM
  2. show some code based on the day of the month.
    By chetanmadaan in forum PHP
    Replies: 2
    Last Post: 10-03-2011, 06:51 PM
  3. Show Div based on URL
    By agr8lemon in forum JavaScript
    Replies: 1
    Last Post: 04-30-2010, 11:24 AM
  4. Show/hide div based on cookie value
    By bigalo in forum JavaScript
    Replies: 2
    Last Post: 11-12-2009, 06:24 PM
  5. How Do I make A Time Based T.V. Show?
    By paagle in forum JavaScript
    Replies: 3
    Last Post: 12-21-2005, 06:55 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •