Updating database with ajax

But the script I'm using assigns the updated value to the same variable every time (in this case it's 'q').the javascript looks like this (I found this on the web all over the place) I see why the variable 'q' ends up being what is passed to the db update script.

I also want the update to occur whenever a field is modified in the form.I have shown a text area to add a new comment to the database via AJAX.After entering the comment, the Add button triggers the AJAX call to insert the user’s comment to the browser.In the AJAX success block, I received the response text or HTML to update the user about the database action.This PHP code deals with the database CRUD actions using switch cases.

Search for updating database with ajax:

updating database with ajax-58

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “updating database with ajax”