I am making a small application for some friends for free, and I don't work with much data and time stuff..
Basically there is a holiday house on time share, and there are three families - each family has "rights" in turn week by week starting with Family A on the week starting friday March 28th.
They want to be able to go to the site and quickly see when the house is "theirs" and also to be able to swap weeks with the other families (no password needed - honesty system - I might make it email the three families whenever a change is made)
I want to output something like
Choose month (drop down menu)
Showing April (for example)
Friday 28th March 2003 - Thursday 3th April - FAMILY A
Friday 4th April - Thursday 10th April - Family B
Friday 12th April - Thursday 17th April - Family C
Friday 18th April - Thursday 24th April - Family A
Friday 25th April - Thursday 1st May - Family B
and so on I need to display about 3 months worth on each page, and I'll colour code it.
Should I use a database for changes and make that override specific dates ? but otherwise rely on a standard code to determine the family who has the house for that week ?
Or run the whole thing out of a database and just use a code to populate each week differently - the over engineered solution I thought of. There must be an easier way to do it!
its making my head hurt, especially this begining on a friday for each week thing. Any suggestions, links to similar applications or code that anyone can post will be ENORMOUSLY appreciated.
thanks
mike