Ok, well I thought I had it, but I do not. I was taking the premise of the code that mrdamien gave me and thought I could use it the same way. Instead of using it for spacing...<BR><BR>...I though I would throw in an include file that displays a top of a box and then I wanted to throw in a footer that would display the bottom of the box...wrap the results by day using some graphics. Here is the modified code...
$sql = "SELECT * from XXX where start_search BETWEEN '$nowq_date' AND '$nowq5_date' ORDER BY start_search ASC";
$result = mysql_query($sql,$connection) or die("Invalid query: " . mysql_error());
$previous_date = 0;
while ($row = mysql_fetch_array($result)) {
$start = $row["start"];
$end = $row["end"];
$date = $row["date"];
if($previous_date === 0){
$previous_date = $date;
}else if($date != $previous_date){
$previous_date = $date;
include ("header.php");
}
echo "<TABLE WIDTH='100%' BORDER='0' CELLSPACING='0' CELLPADDING='4'><TR>
<TD WIDTH='25%' NOWRAP>$date</TD>
<TD WIDTH='20%'>$start</TD>
<TD WIDTH='15%'>$end</TD>
</TR></TABLE>";
}
My question is, where do I put the code to properly wrap the footer data by date using an include file?