JSON from Datatables DB in HTML
-
Dear Tobias,
I have to add some functions to your perfect plugin, but I cannot find files where you get JSON data from DB and schow it HTML table.
I also cannot understand how should I fetch JSON data from the post_content. The JSON format differs a bit from those Ive found in web.
I have the like:
[0] Head of the table
[1] first row
…In other examples that looks loke that:
{ “id”: “5002”, “type”: “Glazed” },
{ “id”: “5006”, “type”: “Chocolate with Sprinkles” },
{ “id”: “5004”, “type”: “Maple” }Like near the each value there is its “column name”…
Is that possible to convert JSON to the second format to be able to work with that as with an array of objects?Otherwise how can I fetch certain values from the cell post_content, like column name, id from JSON array table within SQL (and php or js) ?
Or is it better to export content into the json file and work with it?
Im very sorry for the long question.
Thank you very much in advance.
BR Maks
The topic ‘JSON from Datatables DB in HTML’ is closed to new replies.