how we can开发者_JAVA技巧 update mysql detabase by using ajax...
any help or consept..
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.
You need to call a url from javascript, and do the job serverside.
- We cannot update mysql database by using ajax!
- 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
- make ordinal php script that updates a database by usual POST request.
this way you can get your application working
精彩评论