Hi,
I am looking for general help here. I dont know how to start at this... maybe someone can point me in the right direction.
I need to calculate how many nights of a given time frame (variable dates) lie within certain ranges of times given to calcutate pricing for a hotel which has different prices depending on the season. (fixed dates).
So I have this table (MYSQL) which for example says:
from to price/night
01/01 03/31 100,-
04/01 12/20 120,-
12/21 12/31 160,-
How do I tackle (or at least attack) the problem to calculate the price of a stay in this hotel for, lets say Dec. 18th to Jan. 5th???
Obviously the dates which fix the pricing do not have/need the attribute (year) as they are always the same...
Can someone give me a jump start?
THX
Dennis
(from sunny Tenerife island)