[eluser]CroNiX[/eluser]
Depends on how you called it. If you were using this function:
Code:
public function survey_results()
{
$name = $this->session->userdata('name');
//needs to be an array to pass to the view
$data['HygieneCount'] = $this->User_Model->count_hygiene_factor($name);
$this->load->view('factors_survey/survey_results', $data);
}
Then in your 'survey_results' file, just