This is like super easy question. There's a function in my controller which won't display correctly.
The header view will display below table which make characters unreadable due to missing encoding.
Please see code below. Please kindly advice what I missed.
Code:
public function show_registered(){
$this->load->database();
$this->load->helper('form');
$this->load->helper('url');
$this->load->library('table');
$this->load->helper('html');
$this->load->view('template/header');
$query = $this->db->get('registered');
$data = array();
$data[] = array('ลำดับที่','ภาพถ่าย');
foreach($query->result() as $row){
$image_properties = array(
'src' => $row->photo,
'width' => '180',
'height' => '120',
);
$data[] = array($row->id,img($image_properties));
}
echo $this->table->generate($data);
$this->load->view('template/footer');
}