Firstly I'm sorry... the title is not the appropriate but I didn't know how to write this title so... Now, let's to the question... I have a grid and I need to do the following:
I need to verify if some data are on database, and if there isn't, I have to create a row with these data. The problem is that I'm using ajax
to send the data to the server(my server file is in php)... but after I send the data how can I do to verify the data on database and then to send these back to the javascript
file to show a message to the user like: "These data already exists..." or to insert a new row with these data? Am I so confused?
Thanks in advance!