[eluser]smickiedoo[/eluser]
Found the PHP function array_push(), which is used to append data to the end of an existing but I can't get it to work.
I tried:
Code:
$data['something'] = array();
foreach($query->result() as $row)
{
array_push(
$data['something'], array('id'=>$row->id, 'name'=>$row->name, 'title'=$row->title )
);
}
It throws the same error as above...