I have an issue with a calendar script i wrote, the problem occurs when i have 0 blank cells before the start of the month, ie, first day is a sunday. the problem is that it adds a blank row above the first row of days, which creates a very thin line above the days which just doesnt look right. any ideas would be greatly appreciated, here is the section that creates the day names row and the first row of blank cells up to the correct day:
<tr>
<?
for ($c=0; $c<7; $c++)
{
echo "<td bgcolor = '#CD5C5C'><font face=Arial size=-2>".$dna[$c]."</font></td>\n";
}
?>
</tr>
<tr>
<?
for ($d = 1; $d <= $fdmv; $d++)
{
$rcv++;
echo "<td><font face = Arial size = -2></font></td>\n";
}
while ($dcv <= $mda[$cmv])
{
if ($rcv % 7 == 0)
{
echo "</tr>\n<tr>\n";
}