Skip to content

Instantly share code, notes, and snippets.

@rahman541
Last active August 29, 2015 14:10
Show Gist options
  • Save rahman541/39ad4bff9423de1561a0 to your computer and use it in GitHub Desktop.
Save rahman541/39ad4bff9423de1561a0 to your computer and use it in GitHub Desktop.
Arikal: query to check availability on specific date & time
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