Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 1816

How to save oTable to MySQL

$
0
0
I've read through the doc and came across this qualifier:

Data is not saved to the server at the moment, just the local DataTables instance - so a reload takes the table back to it's original state. An XHR call to the server would be needed to save the user input information into a database (in saveRow).

Question: how do you save the final edited data, in this case presumely the oTable instance, into an MySQL db?

Example: "customer_table" with unique id "id" and customer phone number "phone". The edited fields would "phone". After all the inline editing are done, how would you save all of the edited data to MySQL db? I hope to be able to save edited data either one row at a time (nRow) or the entire table (oTable) with multiple rows edited in a single click.

Sample codes would be greatly appreciated.

Viewing all articles
Browse latest Browse all 1816

Latest Images

Trending Articles



Latest Images