i has the next table:
| ID | Date-Start |Date-End|
| 01 | 2014-04-10 |2014-04-12|
| 02 | 2014-04-13 |2014-04-15|
| 03 | 2014-04-16 |2014-04-18|
| 04 | 2014-04-19 |2014-04-22|
The user select 2 dates and i need to validate this 2 dates not cross with the ones in table. For example user enter 2014-04-20 to 2014-04-21, this is invalid because in record 04 this range are occupied from 2014-04-19 to 2014-04-22. Ty for help. Excuse my bad english.