Thanks for the help. That works except for one thing, $d (which counts how many days have passed this week and starts a new row after 7) is always set one unit too high. I altered the script a bit, so it's like this:
<?php
$month = date(m);
$year = date(y);
$day_one = strtotime($year . '-' . $month . '-1');
$d = date('w', $day_one);
for ($f = 0; $f < $d; $f++) {
echo '<td width="120" height="100" valign="top"></td>';
}
$i = 1;
$d++;
while($row = mysql_fetch_array($result))
{ ?>
<td width="120" height="100" valign="top"><p><?php echo $i; ?></p>
<p align="center"><font size="2">
<?php echo $row['event']; ?></font></p>
<?php
$i++;
$d++;
if ( $d > 7)
{
$d = 1;
echo "</tr><tr>";
}
?>
</td>
<?php
}
?>
After $d is used to add blank cells, I boosted it by one and that did the trick.
Thanks,
~JOSH