PHP. Information in an array
PHP. Information in an array
Hello,
I would like to use DataTables to show some rows built by a PHP program that stores the information in an array.
I am looking the examples, and I am not completely sure inf this functionality is already present in DataTables. I clearly find the information related to server processing when working on databases, but is there any other option to present information in other variable types (i.e. arrays)?
Maybe I am mixing a lot of things. Sorry if it is a rather obvious answer...
Thanks a lot for your help
Regards,
David
I would like to use DataTables to show some rows built by a PHP program that stores the information in an array.
I am looking the examples, and I am not completely sure inf this functionality is already present in DataTables. I clearly find the information related to server processing when working on databases, but is there any other option to present information in other variable types (i.e. arrays)?
Maybe I am mixing a lot of things. Sorry if it is a rather obvious answer...
Thanks a lot for your help
Regards,
David
This discussion has been closed.
Replies
Just have your PHP script output JSON (encode_json()) and then use something like this: http://datatables.net/release-datatables/examples/data_sources/ajax.html
Allan