I am building a website and have written a script that i tested and it works successfully that places information from a form into a MySQL database. This form is for making an appointment with the owner of the website… so this form, before inputting the information into the database needs to first check the database for an appointment already there for the same time…
So my question to you guys for help is : How do I query the MySQL database in php and ask it if there is already an appointment there? and If there is not, it schedules the appointment no problem and inputs the info… however if there is, it should redirect the user to a page “where i can explain that the time slot is filled” can someone please give me an idea of how to accomplish this? I sincerly thank you in advance!!
-GregoryMW