NYCPHP Meetup

NYPHP.org

[nycphp-talk] Week # and Corresponding Start and End Dates

invisiblemute geek at invisiblemute.com
Fri Apr 16 13:59:09 EDT 2004


I have a list of date entries in a DB and I am able to pull them out nicely by week with MySQL. I can't seem to find if there is then a good solution with MySQL, PHP or some combination of the two for me to display the results like this:
Week 1 (Jan 1 - 7, 04)
----------
Jan 1, 04
Jan 3, 04

Week 2 (Jan 8 - 15, 04)
----------
Jan 8, 04
Jan 9, 04
Jan 11, 04

I'm just missing the part in parentheses so I can display start and end times for the weeks.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040416/2700481b/attachment.html>


More information about the talk mailing list