hi,
you may cram all the unavailable dates into an array and then use a an if statement in each respective table cell on your calendar page...
for instance, if august 12th and 13th are unavailable dates:
<?php
//put all unavailable dates into an array or
//if you are retrieving them from the database store them
//with spaces between and then use explode() function to
//convert them into an array
$unavailable=array("20030812", "20030813");
?>
in your table change the background of each respective calendar cell into red if they are unavailable btw you have to put these if statemenst in all calendar cells
<td <?php if(in_array("20030812",$unavailable)){echo "bgcolor=\"red\"";}?>> August 12 </td>
<td <?php if(in_array("20030813",$unavailable)){echo "bgcolor=\"red\"";}?>> August 13 </td>
this would work but it would also make it really hard to maintain this code if you are planning to publish dates in more than one month...