Ok I am working on some code for a time and attendance program and I need to make it so that when a user enters a status that is the same as the status they last entered (in, out, break, lunch, etc..) It will give them an alert and not allow the submission to be entered into the data base. The basic structure of the Mysql table for these areas would be the employee number (which I have under "fullname") and the inout with values of status.
So for example when employee number "fullname" 222 has status of break punches in and submits the form with status of break I need to have a message of "you are already punched in as status break"
I have all the code for everything else except how to figure out how to do this "if , then" condition with the data from the mysql database.
Thanks for your help.
