I am using the php to pull events from mysql and to then output the names followed by a count down timer for which the variables are being generated within the while loop. Code below:
Code:
echo '<script type="text/javascript">';
$result2 = mysql_query("SELECT * FROM deal_detail, deal_times, vendor_details WHERE deal_detail.id = deal_times.deal_id AND deal_detail.vendor_id = vendor_details.id AND category_id = '$category' AND detail_approved = 1 AND payment_approved = 1 AND final_approval = 1 AND $phpdate = 1 AND start_date < now() AND end_date > now() AND $daystart < now() AND $dayend > now() GROUP BY deal_times.deal_id ORDER BY $dayend $dir");
while($row2 = mysql_fetch_array($result2))
{
$phpdate2 = strtotime( $row2[$phpdate.'_end'] );
$mysqldate = date( 'F d, Y H:i:s', $phpdate2 );
echo'
var futuredate'.$timeid2.'=new cdtime("countdowncontainer'.$timeid2.'", "'.$mysqldate.'")
futuredate'.$timeid2.'.displaycountdown("days", formatresults)
';
$timeid2 = $timeid2+1;
}
echo ' </script>';
It works in every other browser just not in IE8 and the crazy bit is if i remove the <script> tag it outputs the results just not the timer. Add the script tag back in and BOOM no output ....
Even crazier than that is i have a similar system on another page which has no issues ....