[eluser]dan.syme[/eluser]
in my controller i have the following function
function all()
{
$data['query'] = $this->db-get('activities');
$this->load>view('activity_response', $data);
}
I want to push the query result into an array and then json_encode. Do i have to use a foreach here or does the query automatically push to any array, or do I need to use a regular mysql_fetch_array?
Thanks,