I have multiple time countdowns that need to get displayed on one page and the time left is data from a database.
I'm using examples from another website, and I tried many of them, but I can only display one.
My code:
<?
$result = mysql_query("SELECT * FROM `time` ");
while ($row = mysql_fetch_array($result)) {
$futuredate = date('F d, Y H:i:s', time()+$row['TimeLeft']);
?>
<div id="cdcontainer"></div>
<script type="text/javascript">
var launchdate = new cdLocalTime("cdcontainer", "server-php", 0, "<?php echo $futuredate;?>", "debugmode")
launchdate.displaycountdown("days", formatresults)
</script>
<?php
}
?>