开发者

update mysql detabase by using ajax

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.


  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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜