Re: [PHP] Finding out the first possible booking date with php

2009-12-03 Thread Gerardo Benitez
Hi Merlin, I think that you could do a table with the periods such as ID Star End is_free 1 1.12 14.12 1 2 4.12 18.12 0 3 5.12 19.12 0 then you can search the first period free with a query Mysql $sql = "SELECT id FROM periods where is_f

[PHP] Finding out the first possible booking date with php

2009-12-03 Thread Merlin Morgenstern
Hello everybody, I am pretty much stuck with a problem and I was hoping to find some help here with you guys. A PHP Script with MySQL as DB has to find out the first possible booking period available. I can't figure out the logic behind and if there is a trick with PHP to do it. Following