|
Hello,
I'm working on a scheduling system for a class project with a small group of developers. It is my responsibility to write the start-up code for the week view of a calendar. I've written the php to correctly render the html that I want, but here is my problem:
At the top of each column will be the header that outputs the day of the week and the date. I'm looking for an efficient way to render the date dynamically for each header. The view will always have 7 days, (sunday at the left and saturday at the right).
We're running on top of a MySQL database. So I guess I'm wondering, would it be better to render the dates w/ a php function or should I use something from MySQL? I know MySQL has something like add_date(), sub_date() and you give it a specified interval, but like I said, I'm new to php so I don't know if there's a better way or not.
Anyway, just wondering if I could get some tips from someone who's implemented something similar? Thanks!
|