I need to check the duplicate value from database using PHP and MySQL.I am explaining my table below.
time_id member_id day_id time
1 2 1 12.30am-3.00am
Here I need to check duplicate for time column. Suppose user entered time like 2.00am-4.00am for member_id=2 and day_id=1 it should be checked because 12.00am-3.00am slot has already booked for that member_id and day_id.
Here I need query for user can not insert the time in between 12.00am-3.00am again for the same member_id and day_id.
start timeandend timewhich include date too? It would have been easy with queries to check duplicate and crossing slots.