Help with array of objects

Help with array of objects

edwredeedwrede Posts: 3Questions: 0Answers: 0
edited April 2013 in General
Hi guys.

I've been playing with the dataTables for the last week or so, really enjoying the flexibility that the component offers!!

Also great to see an active community supporting it!

I'm new to web development and I'm battling with the construction of my "array of objects".

I build the array in a php file where I get a SQL result set, can anyone help me with some sample code for building the array of objects?

The while loop where the array would be built looks like this:

while($row = mysql_fetch_array($result))
{
//Add code here to build array of objects
}

I'm just battling with the logic in how exactly one constructs this to be used in the dataTables.

Many thanks anyone who gives me a head start!

Replies

  • allanallan Posts: 63,204Questions: 1Answers: 10,415 Site admin
    This blog post should help: http://datatables.net/blog/Extended_data_source_options_with_DataTables

    Allan
  • edwredeedwrede Posts: 3Questions: 0Answers: 0
    Thanks Allan, I came right.

    Many thanks!!
This discussion has been closed.