You stated in the middle of the
for loop right?
--- code snippet ---
for ($k = 1; $k <= 6; $k++) {
//SET 6 ROWS
print ("<TR BGCOLOR=WHITE>"

;
for ($i = 1; $i <= 7; $i++) {
//SET 7 COLUMNS
$calStartDate++;
if (($calStartDate <= 0) || ($calStartDate > $LastDay)) {
print ("<TD BGCOLOR=#DDDDDD height=110 valign=top align=left> </TD>"

;
} elseif (($calStartDate >= 1) && ($calStartDate <= $LastDay)) {
//IF TODAY
if ($calStartDate=="1"

{$MyDay="01";}
if ($calStartDate=="2"

{$MyDay="02";}
if ($calStartDate=="3"

{$MyDay="03";}
if ($calStartDate=="4"

{$MyDay="04";}
if ($calStartDate=="5"

{$MyDay="05";}
if ($calStartDate=="6"

{$MyDay="06";}
if ($calStartDate=="7"

{$MyDay="07";}
if ($calStartDate=="8"

{$MyDay="08";}
if ($calStartDate=="9"

{$MyDay="09";}
if ($calStartDate>9) {$MyDay=$calStartDate;}
$ThisDay="$calYear$calMonth$MyDay";
if (($MyDay==date("d"

) AND ($calMonth==date("m"

) AND ($calYear==date("Y"

)) {
print ("<TD BGCOLOR=#FFCCCC height=110 valign=top align=left><FONT SIZE=2><b>$calStartDate</b></font>\n"

;
} else {
print ("<TD height=110 valign=top align=left><FONT SIZE=2><b>$calStartDate</b></font>\n"

;
}
print ("</TD>"

;
}
}
print ("</TR>\n"

;
}
print ("</TABLE></td></tr><TR BGCOLOR=WHITE><TD>\n"

;
--- end snippet ---
I tried putting it in the middle of that and when it parsed the file, I had several 10/07's, instead of just 1 10/07 with multiple entries.
I used this:
while ($row = mysql_fetch_row($run_sql))
{
$empname = $row[1];
$shiftstart = $row[3];
$shiftend = $row[4];
print ("<TD BGCOLOR=#FFCCCC height=110 valign=top align=left><FONT SIZE=2><b>$calStartDate</b><p>$empname :: $shiftstart - $shiftend</p></font>\n"

;
}
Am I missing something here?