Hey,
Below is code for a jquery countdown… How can I use this method to loop through a mysql database table and display a timer for each record in the table based on a date/time stored in one of the fields?
<script type="text/javascript" src="jquery.countdown.js"></script>
<script type="text/javascript">
$(function () {
var newserver = new Date(2012, 6 - 1, 28);
$('#defaultCountdown').countdown({until: newserver});
$('#removeCountdown').toggle(function() {
$(this).text('Re-attach');
$('#defaultCountdown').countdown('destroy');
},
function() {
$(this).text('Remove');
$('#defaultCountdown').countdown({until: newserver});
}
);
});
</script>
<div id="defaultCountdown"></div>
Cheers