penster1
03-06-2008, 10:18 PM
1) Script Title: Universal Countdown
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex6/universalcountdown.htm
3) Describe problem: How do i display multiple instances of Time Remaining. I currently have this script installed pulling a targetdate from a mysql database.
If there is only 1 item then it displays correctly. The information is displayed in a table with table headers of Item# Description Date End Time Remaining.
Sometimes there are only 10 items other times there may be 30 items or more. The field from my database thats stores all the end dates is called $targetdate. The page is designed in php. When using the following script it will only show in one row of the items, instead of all showing.
<script type="text/javascript">
var launchdate=new cdLocalTime("cdcontainer", "server-php", -60, "<?php echo $targetdate ?>", "debugmode")
launchdate.displaycountdown("days", noblank)
</script>
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex6/universalcountdown.htm
3) Describe problem: How do i display multiple instances of Time Remaining. I currently have this script installed pulling a targetdate from a mysql database.
If there is only 1 item then it displays correctly. The information is displayed in a table with table headers of Item# Description Date End Time Remaining.
Sometimes there are only 10 items other times there may be 30 items or more. The field from my database thats stores all the end dates is called $targetdate. The page is designed in php. When using the following script it will only show in one row of the items, instead of all showing.
<script type="text/javascript">
var launchdate=new cdLocalTime("cdcontainer", "server-php", -60, "<?php echo $targetdate ?>", "debugmode")
launchdate.displaycountdown("days", noblank)
</script>