[eluser]alexaaaaaaaaaa[/eluser]
done i've managed to get it working
here's the code
model
function get_v()
{
///SELECT choice_voted, COUNT(*) as count GROUP_BY choice_voted WHERE
$this->db->select('choice_voted, COUNT(*) AS count');
$this->db->group_by("choice_voted");
$this->db->where('poll_id = 105');
$this->db->from('poll_vote');
$result =$this->db->get();
return $result;
}
controller
$data['poll_v'] = $this->friends_model->get_v();
$data['poll_vs'] = $data['poll_v']->result();
view
<pre><?php print_r($poll_vs); ?><pre>