I am not able to update form data to MySQL using PHP and jQuery

Posted by Jimson Jose on Stack Overflow See other posts from Stack Overflow or by Jimson Jose
Published on 2010-04-06T04:48:52Z Indexed on 2010/04/06 5:03 UTC
Read the original article Hit count: 279

Filed under:
|
|
|

My problem is that I am unable to update the values entered in the form. I have attached all the files. I'm using MYSQL database to fetch data.

What happens is that I'm able to add and delete records from form using jQuery and PHP scripts to MYSQL database, but I am not able to update data which was retrieved from the database. The file structure is as follows:

index.php is a file with jQuery functions where it displays form for adding new data to MYSQL using save.php file and list of all records are view without refreshing page (calling load-list.php to view all records from index.php works fine, and save.php to save data from form)

-> Delete is an function called from index.php to delete record from MySQL database (function calling delete.php works fine)

-> Update is an function called from index.php to update data using update-form.php by retriving specific record from MySQL table, (works fine)

Problem lies in updating data from update-form.php to update.php (in which update query is written for MySQL)

I have tried in many ways - at last I had figured out that data is not being transferred from update-form.php to update.php; there is a small problem in jQuery AJAX function where it is not transferring data to update.php page. Something is missing in calling update.php page it is not entering into that page.

I am new bee in programming. I had collected this script from many forums and made this one. So I was limited in solving this problem. I came to know that this is good platform for me and many where we get a help to create new things.

Please find the link below to download all files which is of 35kb (virus free assurance):

download mysmallform files in ZIPped format, including mysql query

© Stack Overflow or respective owner

Related posts about php

Related posts about jQuery