Json_Encode : how can I get the json_encoded array to work with Datatable ?
Json_Encode : how can I get the json_encoded array to work with Datatable ?
Hello,
Here's what I get from the PHP json_encode function :
{"id_parcelle":"974000087_1_1","datesimul":"2009-07-10","nomplante":"R570","dmbaer":"3226.49"},
{"id_parcelle":"974000087_1_2","datesimul":"2009-06-10","nomplante":"R571","dmbaer":"3226.49"}
Any clue for getting this to work with datatables ?
Here's what I get from the PHP json_encode function :
{"id_parcelle":"974000087_1_1","datesimul":"2009-07-10","nomplante":"R570","dmbaer":"3226.49"},
{"id_parcelle":"974000087_1_2","datesimul":"2009-06-10","nomplante":"R571","dmbaer":"3226.49"}
Any clue for getting this to work with datatables ?
This discussion has been closed.
Replies
maybe this is what you need:
[code]
[
{
"id_parcelle": "974000087_1_1",
"datesimul": "2009-07-10",
"nomplante": "R570",
"dmbaer": "3226.49"
},
{
"id_parcelle": "974000087_1_2",
"datesimul": "2009-06-10",
"nomplante": "R571",
"dmbaer": "3226.49"
}
]
[/code]
Allan