Hi!
I have a calculation problem in this system i am doing for on-line holiday booking.
Rates are given for a particular date range as follows in the "rate" table:
E.g.
$10 for 2005/10/01 - 2005/10/05
$20 for 2005/10/05 - 2005/10/10
If client wants to travel from 2nd to 9th, the cost should be $120.00
Calculation:
2nd to 5th @ $10 per day = $40
6th to 9th @ $20 per day = $80
My problem is, how to figure out the exact dates & get the rate from the 'rate' table?
If possible, someone please help since i am in a hurry to finish this.
Thanks & regards,
Pradee.