Simple Example Tutorial for Datatables

Simple Example Tutorial for Datatables

ShabalakaShabalaka Posts: 1Questions: 0Answers: 0
edited May 2013 in DataTables 1.9
Hi All,

First off i would like to say that i am very new to using API,s from Javascript/Jquery.

I am trying to get the very basic PHP tutorial using Datatables to work, I have edited the normal database variables from the main file (server_processing.php) and it returns the data from the database.

Returned data looks like :
[code] {"iTotalRecords":"2","iTotalDisplayRecords":"2","aaData":[["1","testUser","098f6bcd4621d373cade4e832627b4f6"],["2","testuser2","098f6bcd4621d373cade4e832627b4f6"]]}[/code]


I have posted my PHP Document with the table in to JSFiddle ->

http://jsfiddle.net/P76xX/

As you can see I have a table with the ID example as I thought the $('#example').dataTable was filling the table with the returned results above.

If anyone can explain how to get the results from server_processing.php to the PHP Document it would be appreicated.

Sorry for the long post.

Many Thanks Shab.
This discussion has been closed.