Re: [PHP] amount of overlaping dates

2009-12-03 Thread David Otton
2009/12/3 Merlin Morgenstern : > That is what I thought first, too! But this does not work correct as there > might be a booking starting for example tomorrow. There needs to be free > place for the entire booking period. Ah, of course. I see the problem now. It's an odd situation, because you do

Re: [PHP] amount of overlaping dates

2009-12-03 Thread Merlin Morgenstern
David Otton wrote: 2009/12/3 Merlin Morgenstern : I am searching for a way to identify the amount of simultanious date ranges. Example: array start=('1.12', '5.12', '9.12'); array end =('8.12', '12.12', '16.12'); Looks like this in a table: start end 1.128.12 5.1212.12 9.121

Re: [PHP] amount of overlaping dates

2009-12-03 Thread David Otton
2009/12/3 Merlin Morgenstern : > I am searching for a way to identify the amount of simultanious date ranges. > > Example: > > array start=('1.12', '5.12', '9.12'); > array end =('8.12', '12.12', '16.12'); > > Looks like this in a table: > start   end > 1.12    8.12 > 5.12    12.12 > 9.12    16.12