[eluser]Pascal Kriete[/eluser]
You can change the controller a little:
Code:
function comments($id)
{
$query = $this->db->get_where('entries', array('id' => $id), 1, 0);
$query = $query->row_array();
foreach($query as $key => $field)
{
$data[$key] = $field;
}
$this->load->view('whatever', $data);
}
/* View */
<h1><?=$name?></h1>
<p><?=$body?></p>
//..etc