Skip to content
Advertisement

I want to validate two columns from my database “name and group” if it exists display already exists and if it doesn’t exist insert into the database

this the html with ajax and it displays successful and inserts into the database but how can I display error message if the name is already exist after the validation

JavaScript
JavaScript
JavaScript

This is the insertion query and I guess I need select query to validate the name. help me out here

JavaScript

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement