Integrate with a date selector

Integrate with a date selector

Postby adh2k1 » Wed May 28, 2008 12:09 am

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?
Posts: 2
Joined: Tue May 27, 2008 11:55 pm

Re: Integrate with a date selector

Postby chris » Wed May 28, 2008 8:41 am

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.

User avatar
Site Admin
Posts: 1089
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: Integrate with a date selector

Postby bazw1 » Sun Feb 27, 2011 7:54 pm

I realise this was posted regarding version 2, however are any example scripts available to test this?
Posts: 7
Joined: Fri Feb 25, 2011 2:29 pm

Return to General

Who is online

Users browsing this forum: No registered users and 2 guests