Untitled
By: a guest | Sep 5th, 2010 | Syntax:
PHP | Size: 0.25 KB | Hits: 22 | Expires: Never
foreach($this->db->get('Users')->result AS $key => $row)
{
$row['groups'] = array();
foreach($this->dv->get_where('Groups', "UsersId = $row->Id")->result AS $key2 => $row2)
{
$row['groups'][] = $row2->Id;
}
$data[] = $row;
}
return $data;