I have created a simple item master form fields are id,name and price, i want to validate duplicate name. can anyone suggest me how to validate same name which i have entered earlier not accepted and it shows error message "Duplicate Item Name". mysql is database.