[eluser]xeroblast[/eluser]
try this in your controller
Code:
$data[‘query’] = $this->emp_model->emp_getall();
change to
Code:
$data[‘students’] = $this->emp_model->emp_getall();
try this in your model
Code:
$query=$this->db->get(‘student’);
return $query;
change to
Code:
$query=$this->db->get(‘student’);
return $query->result();
and in your view, the loop
Code:
// if youre using foreach
foreach ( $students as $s ) { }
// if your using for
for ( $i=0; $i < count($students); $i++ ) { }