[eluser]Grind[/eluser]
Thanks for your reply. That's a lot better. But it doesn't work for a 100%.
My guestbook-function looks something like this:
Code:
private function guestbook()
{
$this->db->order_by('id DESC');
$query = $this->db->get('guestbook')
foreach($query->result() as $row)
{
echo "<h3>".$row->name.'</h3>';
}
}
But the guestbook is shown, even if the variable $guestbook isn't echoed in the view-file. Besides, the guestbook-function is echoed before loading the page. So if I look at the source I see all the guestbook-entries and after that the <html> and <head>-tags etc. So something is wrong.
I think I don't need to echo anything in the guestbook-function, but how does it work instead?
Thanks for your help.