Last active
August 29, 2015 14:10
-
-
Save rahman541/39ad4bff9423de1561a0 to your computer and use it in GitHub Desktop.
Arikal: query to check availability on specific date & time
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
SELECT count(*) FROM 'Booking List' WHERE BookDate != '12/12/12' AND BookTime = '10:30:00' | |
-- To check booking availability on specific time & date | |
-- Will return row number | |
-- If it is return zero then AVAILABLE | |
-- Else is for not available | |
-- Replace '12:12:12' with php variable. Example '$date' | |
-- Replace '10:30:00' with php variable. Example '$time' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment