All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

Help with PHP and Javascript time countdown

  • # December 10, 2009 at 10:18 am

    I am tring to get a time countdown function going with php and javascript. I am very new with both, but I have gotten somethings to work. Can anyone help me out? What I am tring to get accomplished. I need the enddate to countdown in javascript.
    Here is the code I am tring to get working with javascript.
    $getClosingAuctions=mysql_query("SELECT id, enddate, itemname, bidstart, currency FROM probid_auctions WHERE
    active=1 AND closed=0 AND deleted!=1 AND listin!=’store’ ORDER BY enddate ASC LIMIT ".$layout."");
    while ($closingAuctions=mysql_fetch_array($getClosingAuc tions)) { ?>

    # December 10, 2009 at 10:35 am

    Do you have jQuery running? If so, you can use the jquery_countdown plugin.

    There are a lot of jquery countdown plugins, but I really like this once since it gives you multiple formats and even allows you to use images.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed