tags:

views:

25

answers:

3

how we can update mysql detabase by using ajax...

any help or consept..

A: 

You need to call a url from javascript, and do the job serverside.

GôTô
+1  A: 

Ajax will have to call a remote script which will have to take care of the databse interaction. The code depends on the script language your database handling script will be written in.

You may have a look here for an example of ajax and mysql interaction.

Thariama
A: 
  1. We cannot update mysql database by using ajax!
  2. Thus, divide your task into 2 parts:
    • make ordinal php script that updates a database by usual POST request.
      debug it and make it to work
    • make AXAX code to make such a request.
      debug it and make it to work

this way you can get your application working

Col. Shrapnel