值未从PHP AJAX表单更新为MYSQL数据库 [英] values not updating from PHP AJAX form to MYSQL database

查看:71
本文介绍了值未从PHP AJAX表单更新为MYSQL数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,谢谢大家

我很疲倦地搜索整个论坛,无法找到我正在寻找的答案,因此,我决定发布一个新主题,如果有一个解释这个主题的主题已经存在,我很抱歉找不到并发布在那里.

I tired searching the entire forum and was unable to find the answer i was looking for so i decided to post a new thread, if a thread explaining this already exists than i'm sorry for not finding it and posting there.

无论如何,我的问题是我无法更新表单中输入的值.我已附上我尝试使用的所有文件.发生了什么事,我能够使用 ajax PHP MYSQL数据库输入和删除记录,但是我无法更新即使检查php文件后.

Anyhow my problem is that i am unable to update the values enterd in the form. I have attached all the files i'm using to try get this to work. What happens is that i'm able to enter and delete records from MYSQL database using the ajax and PHP, but i am not able to update even though after checking the php file.

请查找链接中的完整文件,将其压缩

pls find the link were complete files are zipped

http://cid-b88405bc51ef157b.skydrive.live.com/browse.aspx/Public?lc=1033

推荐答案

您的问题可能出现在几个地方:

  1. 对ajax的错误调用
  2. ajax中参数解析错误
  3. 不正确的更新声明

您需要做什么:

  1. 确保传递正确的参数
  2. 确保您正确解析了这些参数
  3. 调试您的更新语句,并确保其有效

这篇关于值未从PHP AJAX表单更新为MYSQL数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆