1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

ASP Countdown timer

Discussion in 'C#' started by ben.r, Aug 8, 2005.

  1. #1
    Hi,
    SEMrush
    I'm creating a countdown timer to a dynamic date, it reads a date from a db and then counts down to that date. I need to know once the date has been reached how i then display a message stating that the users member ship is up.............any ideas?

    Thanks
     
    ben.r, Aug 8, 2005 IP
    SEMrush
  2. vectorgraphx

    vectorgraphx Guest

    Messages:
    545
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    if recordset("userexpiration") < now() then
    response.write "Sorry Bucko... pay up or ship out"
    else
    'show the rest of the page
    end if

    VG
     
    vectorgraphx, Aug 8, 2005 IP
  3. Critters

    Critters Guest

    Messages:
    754
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    0
    #3
    And if you wanted a countdown, you could use the datediff(interval, dateA, dateB) command

    response.write(dateDiff("d", now(), recordset("userexpiration")))

    would give you the days remaining

    "h" = hours, "n" = minutes
     
    Critters, Aug 10, 2005 IP
  4. rocfather

    rocfather Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    A great site i use for help related to programming is http://www.tek-tips.com/

    They have a huge online community
     
    rocfather, Aug 15, 2005 IP