Hi,
I guess this is an opinionated post...
I would like to display a list of time slots (0800 to 2000) a lot like a diary may contain.
What would be the best way of going about this?
My initial thoughts were:
1. Store the values in a table and then loop values in order to display them
2. Create a pre-determined array and simply loop and display values
For each time slot displayed I would like to display a corresponding "body" i.e. like an appointment slot.
Any comments?
pre-determined array?
Moderator: General Moderators
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Use Timestamps in the Database.
Then its just as easy as using some of Mysql's Date and Time Functions.
Then its just as easy as using some of Mysql's Date and Time Functions.
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London