[eluser]Richko[/eluser]
hi i am new to ci, so i am trying to code blog.
i have blog model
function get_entries() {
$this->db->orderby('id', 'DESC');
$query = $this->db->get('blog_entries');
foreach ($query->result_array() as $row)
{
$result[] = $row;
}
return $result;
}
i want to get comments count for each entry and send to view, but i dont realise how to do this...