Created
December 1, 2015 11:00
-
-
Save putzflorian/573feee9fd22b68a6c49 to your computer and use it in GitHub Desktop.
Date Event Range
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $sql = <<<DB | |
| ($fromDate BETWEEN von | |
| AND bis | |
| OR $toDate BETWEEN von | |
| AND bis | |
| OR von BETWEEN $fromDate | |
| AND $toDate | |
| OR bis BETWEEN $fromDate | |
| AND $toDate) | |
| DB; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment