I need to tell php to either end the table, or just write a new row in the table based on the date in the next row of my MySQL query. So basically, if the date from the row in the next result is the same as the date in the previous result, I would write a new row for the result and not re-write the date. If the date was different, I would write the new date and start a new table.
example:
08-29-2003
result 1 result 1
result 2 result 2
08-30-2003
result 3 result 3
08-31-2003
result 4 result 4
example:
08-29-2003
result 1 result 1
result 2 result 2
08-30-2003
result 3 result 3
08-31-2003
result 4 result 4