dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Countdown timer

  1. #1
    Join Date
    Jul 2009
    Location
    Balochistan
    Posts
    1

    Countdown timer

    Hi,

    I am doing project on online bidding using php. I want to display; product details like image,price (in Euros) and bidder name ,time seconds(00m:00s),
    if bidder bid that product (before the time seconds 00:00) the time increased seconds automatically set to 60 seconds and redisplay the username who bid that product .
    if the time go to (00:00) the product allotted to last bidder who bid the product..
    any Ideas, how to do it??

  2. #2
    Join Date
    Jun 2009
    Location
    Belgium (Country in Europe)
    Posts
    44

    Re: Countdown timer

    This is how i would do it:

    You have to save the "time" of creation somewhere on your server or database.
    And the time of the deadline.

    Then when the page loads you use php to compare the time of the deadline with the Unix time. (using "Time" - see link)

    http://be2.php.net/time
    Or http://be2.php.net/manual/en/ref.datetime.php

    That way you can show how much "time" is left untill the deadline.

    Whenever someone bids, you just increase the time of the deadline on your server/database by 60seconds.

    The next time someone loads the page, php compares the current time with the deadline and sees there are 60 seconds left.

    Greetz,
    Dave
    Last edited by ultddave; July 18th, 2009 at 06:01 AM.

  3. #3
    Join Date
    Dec 2009
    Posts
    10

    Re: Countdown timer

    Its good information about countdown timer. People always want to do their project work systematic.

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)