Try this...
<?php
$con=mysql_connect("localhost","<usr>","<pwd>");
mysql_select_db("<db>",$con);
$sql="SELECT * FROM <table>";
$result = mysql_query($sql);
$date = '[ ';
while($row = mysql_fetch_array($result)){
$date .= "new Date('".date("Y/m/d",$row['<timestamp field>'])."'), ";
}
$date .= ' ]';
//echo $date;
?>
Calendar code start...
<script type="text/javascript">//<![CDATA[
// the default multiple dates selected, first time the calendar is instantiated
// MA = [ new Date('2008/08/21'), new Date('2008/08/22'), new Date('2008/08/20'), ] ;
MA = <?php echo $date; ?>;
... calendar code continuing ...
/B