You could just do something like the following:
Code:
<?php
/*rest of code leading up to the query and while loop */
while ($q = mysql_fetch_array($query)) {
?>
<?php $q['item']; ?> Ending:<div id="cdcontainer"></div>
<script type="text/javascript">
//cdLocalTime("ID_of_DIV_container", "server_mode", LocaltimeoffsetMinutes, "target_date", "opt_debug_mode")
//cdLocalTime.displaycountdown("base_unit", formatfunction_reference)
//Note: "launchdate" should be an arbitrary but unique variable for each instance of a countdown on your page:
var launchdate=new cdLocalTime("cdcontainer", "server-php", 0, "<?php echo $targetdate;?>")
launchdate.displaycountdown("days", formatresults2)
</script>
<br>
<?php
}
?>
If that fails, then for each item, you will need to change the container id and the variable for the launchdate.
Code:
<script type="text/javascript">
var launchdate=new cdLocalTime("cdcontainer", "server-php", -60, "<?php echo $targetdate ?>", "debugmode")
launchdate.displaycountdown("days", noblank)
</script>
You could try changing the part in red (being that you are using php and mysql to display the items) to be your product name or some other field from the db. Same with the container, change it to be something else as well.
Hope this helps.
Bookmarks