I need help with my php. I'm being tasked to create a webpage for booking of educational classes. So for example I name my location X,Y,Z. If administrator assigned Peter to venue X at this particular timeslot on this particular day, the administrator cannot assign Mary to this similar venue at the similar timeslot and day. I just started out on PHP and I'm quite lost and didn't know how can I go about fetching out the database to do the comparison or if else condition. Please advice..