I'm working on a travel website and i need to add a complicated function (complicated for me)when adding an offer, that includes date period (FROM DATE until TO DATE) and a price for that period. Ex:
FROM DATE - TO DATE - Price
01.10.2012 - 10.10.2012 - 399
15.10.2012 - 24.10.2012 - 429
03.11.2012 - 15.11.2012 - 439 ...
So, in this way, i can tell the visitors that this offer is available for those dates for that price.
I suppose that it can be done by implode date range (01.10.2012 - 10.10.2012,01.10.2012 - 10.10.2012,01.10.2012 - 10.10.2012) or by implode sepparetly FROM DATE (01.10.2012,01.10.2012,01.10.2012) and TO Date (10.10.2012,24.10.2012,15.11.2012) and by implodeing price also (399,429,439), and then to explode tham to correspond each one, but i don;t know how to do it. I only know that, teoritically, it can be down in this way. Also, i need to have a button/link that, when i click on it, appear a new html row when can i insert period/dates and prices.
I'm new on PHP/MySql and i don't know how to do it. Can someone help me on this?
Hope that i was understandable enough and some will help me with this solution.
Thank you in advance!