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
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
Post a Comment