Hi there.
I need assistance with, I guess, a PHP date function.
There is a way I can figure this, but its really not reliable and I guess it won't even work. So all you guru's, here is what I need to achieve;
I am just writing a simple reservation script in PHP. Now what I need to achieve, is this;
When someone wants to make a reservation, the interface will give the option where the user has to choose how many nights to sleep, and the check-in date, or, the check-in date and check-out date. Now this I can achieve. But here comes the, I guess, tricky part.
Lets say my check-in date is 1 Jan 2008. Check out date is 5 Jan 2008. Now when booking, the application has to reserve all the days, from the starting date, to the end date. With me? Now the other thing that I thought about, is when a user book at the end of a month until in the new month, or for example 28 Dec 2008 until 4 Jan 2009.
So I need to somehow calculate the dates inbetween, and then also it has to be recorded.
Since my English is probably not that good, I'll try to find an example.
Please guys, assist me with this one.
Regards from South Africa.