I am trying to get my output to look like the example below:
I have tried using two while loops but it only prints out the month and never the days. Can someone tell show me how to loop through this??
Month
day time location direction
day ...
day ...
day ...
Month
day ...
.
etc
first I sorted my data
mySQL="select * from practice order by month, day ascending"
my table looks like this
<table width="100%" border="1">
<tr>
<td>Month</td> <----- print month
</tr>
<tr>
<td width="21%">
<div align="right">Day</div> <---- print day here
</td>
<td width="10%">
<div align="center">Time</div> <-- etc
</td>
<td width="37%">
<div align="center">Location</div> <--- etc
</td>
<td width="32%">
<div align="center">Directions</div> <--- etc
</td>
</tr>
</table>
I have tried using two while loops but it only prints out the month and never the days. Can someone tell show me how to loop through this??
Month
day time location direction
day ...
day ...
day ...
Month
day ...
.
etc
first I sorted my data
mySQL="select * from practice order by month, day ascending"
my table looks like this
<table width="100%" border="1">
<tr>
<td>Month</td> <----- print month
</tr>
<tr>
<td width="21%">
<div align="right">Day</div> <---- print day here
</td>
<td width="10%">
<div align="center">Time</div> <-- etc
</td>
<td width="37%">
<div align="center">Location</div> <--- etc
</td>
<td width="32%">
<div align="center">Directions</div> <--- etc
</td>
</tr>
</table>