I've created a database and stored some data along with the scheduled date for each item. I would like to output a schedule in the format like this:
January 1:
- 1:00 pm
Doctors Appt
- 4:45 pm
Birthday Party
January 3:
- 10:00 am
Hair Cut Appt
- 4:50 pm
Bob's House
The problem I've run into is I'm not sure on how to output the data like this. I only want to display the date once but the time and date are in the same row, so a foreach loop won't work. If there's a better way to structure my data to achieve this then I'm willing to do that also.
My Table contains the following data for each row:
id, name, about, date, time
Any help would be much appreciated. Thanks