php - Mysql Query to get booking availability for reservation system -


i have 2 database tables 1). table structure 2). booking table

i want availability of booking table current date , time.

table structure

table structure

booking table

booking table

when request table availability date 2014-11-05 , booking time @ 11:00:00 should compare booking table table structure , display available tables. need mysql query perform operation..

select     `bookingtable.restaurant_table`,     `bookingtable.no_people`,     `bookingtable.booking_date`,     `bookingtable.bookingend_time`,     `bookingtable.bookingstart_time` `bookingtable` left outer join     `bookingtable` on `bookingtable.restaurant_table` = `tablestructure.table_no`     `bookingtable.booking_date` = "2014-11-05" ,     `bookingtable.booking_time` = "11:00:00" 

this do, store dates , times unix timestamps personally


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -