Unable To Update DB Using JEditable
Unable To Update DB Using JEditable
Exvitermini
Posts: 7Questions: 0Answers: 0
I don't understand how to use JEditable. I've been trying all day. I have the table so when I click on a field, it turns into a text box. When i change the content and press enter, it doesn't update the DB.
The structure of my database table is:
member_id int(11)
firstname varchar(100)
lastname varchar(100)
login varchar(100)
passwd varchar(32)
userlevel int(1)
DataTable shows all those fields except for the passwd. The code inside editable_ajax.php doesn't do anything. I tried to put some MySQL code in there to try and update the database but I can't figure out how to do that. I checked out JEditable's website as well and when you edit a field, it will return cell id and the new value. How do I turn that information into MySQL/PHP to update my database?
Thanks for taking your time. I really need to get this done today. Please help me.
The structure of my database table is:
member_id int(11)
firstname varchar(100)
lastname varchar(100)
login varchar(100)
passwd varchar(32)
userlevel int(1)
DataTable shows all those fields except for the passwd. The code inside editable_ajax.php doesn't do anything. I tried to put some MySQL code in there to try and update the database but I can't figure out how to do that. I checked out JEditable's website as well and when you edit a field, it will return cell id and the new value. How do I turn that information into MySQL/PHP to update my database?
Thanks for taking your time. I really need to get this done today. Please help me.
This discussion has been closed.
Replies
http://code.google.com/p/jquery-datatables-editable/downloads/detail?name=JQuery-DataTables-Editable.example.1.0.0.zip