PHP. Information in an array

PHP. Information in an array

LeivaLeiva Posts: 3Questions: 0Answers: 0
edited February 2012 in General
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

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    > I would like to use DataTables to show some rows built by a PHP program that stores the information in an array.

    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
  • LeivaLeiva Posts: 3Questions: 0Answers: 0
    Great!. Thanks a lot for your help Allan!
This discussion has been closed.