Created
April 29, 2012 21:58
-
-
Save MadaraUchiha/2553439 to your computer and use it in GitHub Desktop.
heredoc demonstration
This file contains 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 = <<<SQL | |
SELECT DISTINCT timeBlocks.date | |
FROM timeBlocks | |
WHERE timeBlocks.location = '{$appointmentLocation}' | |
AND timeBlocks.school = '{$_SESSION["school"]}' | |
AND timeBlocks.date >= DATE_ADD(curdate(), INTERVAL 1 DAY) | |
ORDER BY timeBlocks.date ASC; | |
SQL; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment