Page 1 of 1

Integrate with a date selector

PostPosted: Wed May 28, 2008 12:09 am
by adh2k1
I was wondering if you have thought about somehow integrating the calendar with a date selector. Where you could pass variables (start and end date) and check to see if the dates are free. After that, store them in a post parameter and pass them to a form?

Re: Integrate with a date selector

PostPosted: Wed May 28, 2008 8:41 am
by chris
Hi there and welcome to the forum

The script works by only saving dates that are booked in the database table. So, adding a search for availability between dates shouldn't be too hard.
You would just have to do a query using a mysql condition syntax such as BETWEEN. If the result returns 0 rows then that means that the item is available through those dates, if not, then it means that 1 or more days are unavailable.

Chris

Re: Integrate with a date selector

PostPosted: Sun Feb 27, 2011 7:54 pm
by bazw1
Hi
I realise this was posted regarding version 2, however are any example scripts available to test this?