I want to achieve this using my php script:
{
"aaData":[
[
"100",
"189",
"2"
],
[
"100",
"189",
"1"
],
[
"100",
"188",
"4"
],
[
"100",
"188",
"3"
],
[
"100",
"188",
"2"
]
]
}
I am fetching data from database, and i want to put results to above format. Query looks like this:
SELECT user_id, module_id, action_id FROM test;
Please help me to put results of these 3 columns on format which i mentioned above.
Regards