Data not transfred from form to mysql table (updating of data is not happening)
- by Jimson
Hi all and thanks in advance to all for this
I tired and was unable to find the answer i am looking for an answer. my problem is that i am unable to update the values enterd 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 ajax and PHP scripts to MYSQL database, but i am not able to update data which was retrived from database.
the file structure is as follows
index.php is a file with ajax functions where it displays form for adding new data to MYSQL using save.php file and list of all records are view without refrishing 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 ajax function called from index.php to delete record from mysql database (function calling delete.php works fine)
- Update is an ajax function called from index.php to update data using update-form.php by retriving specific record from mysql tabel, (works fine)
Problem lies in updating data from
update-form.php to update.php (in which
update query is wrriten for mysql)
i had tried in many ways at last i had figured out that data is not being transfred from update-form.php to update.php there is a small problem in jquery ajax function where it is not transfering data to update.php page.
can any one correct this ????? i will be greatfull to them.....
please find the link below for all files
link to get my form files