How to add alert or count down timer here ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shree pathi
    New Member
    • Dec 2011
    • 1

    How to add alert or count down timer here ?

    I have a data table... It displays date and time from saved mysql data. I need "time alert/countdown" before 60 min in this time. my code is...

    Code:
    <td>
    <?php echo date("d-m-Y", strtotime($row['date'])); ?>
    </td> 
    <td>
    <?php echo date('H:i', strtotime($row['time'])); ?>
    </td> 
    <td>
    <php time alert/countdown code here > 
    </td>
    can anybody tell me ?
    Last edited by Rabbit; Oct 30 '12, 04:39 PM. Reason: Please use code tags when posting code.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Please use code tags when posting code.

    Compare the date and time against the current date and time to see if it's between now minus 60 minutes and now. The time() function will return the current date and time.

    Comment

    Working...