SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot revivalx's Avatar
    Join Date
    Dec 2009
    Location
    Kuala Lumpur,Malaysia
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Countdown timer for web auction??

    anyone know how to create countdown timer for auction web. the timer is more to AJAX. the dateline time for auction can be retrieve from database. anyone know how to settle this problem or there are any free download script for this problem??

    TQ


    Web advertising solution

    Business is not about money, it is about trust..

  2. #2
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,747
    Mentioned
    65 Post(s)
    Tagged
    0 Thread(s)
    This is a Javascript question more than a PHP one.

  3. #3
    SitePoint Zealot revivalx's Avatar
    Join Date
    Dec 2009
    Location
    Kuala Lumpur,Malaysia
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes
    but the thing is ,it is more too PHP programming.
    Combining between PHP and javascript. the dateline retrieve from sql language.

    Is that rite?Anyone know about my problem?


    Web advertising solution

    Business is not about money, it is about trust..

  4. #4
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,747
    Mentioned
    65 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    $db = new mysqli('host','name','pass','database');
    $query $db->prepare("SELECT time FROM table WHERE id = ?");
    $query->bindParam('i',$_GET['id']);
        
    $query->execute();
        
    $query->bind_result($time);
        
    $query->fetch();
    echo 
    $time
    The sum total of the PHP code needed... now try getting an AJAX call in 7 lines :P
    This is -still- a Javascript question.

  5. #5
    SitePoint Enthusiast
    Join Date
    Apr 2009
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's an example of a countdown timer script:

    http://www.dynamicdrive.com/dynamici...dhtmlcount.htm

    Keep in mind that the date/time that you return from the server may be a different timezone to the users date/time so you will need to factor in this.


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
  •