Help with array of objects
Help with array of objects
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!
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!
This discussion has been closed.
Replies
Allan
Many thanks!!