Please can anybody help with the correct SQL validation code for < > and = . i will like to insert with php my admin. the idea of what i want is this . i have a form with 3 fields.( drop down menu . each contains 1 to 6. i want an error to pop up if the value the addition of values selected in the three field is higher than 6. thank you