I have checked your code and the last piece of php code at the end of the script should look something like below. Notice how I added $date=0 and $date+=1. That is because the date you were saying that wasn't being displayed hadn't been assigned any value at all. So try using the below code.
<?php
$date=0;
foreach ($week as $key => $val)
{
echo '<tr>';
// here you may need to add $date+=1; or $date-=1;
for ($i=0;$i<7;$i++)
{
$date+=1;
echo '<td align="center">'. $date .'</td>';
}
echo '</tr>';
}
?>
And please use code tags next time.
cwarn23
Occupation: Genius
3,033 posts since Sep 2007
Reputation Points: 413
Solved Threads: 259