Welcome Guest, Not a member yet? Register   Sign In
Explantion of {elapsed_time}
#7

[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 &lt;html&gt; and &lt;head&gt;-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.


Messages In This Thread
Explantion of {elapsed_time} - by El Forum - 10-26-2009, 03:32 AM
Explantion of {elapsed_time} - by El Forum - 10-26-2009, 04:10 AM
Explantion of {elapsed_time} - by El Forum - 10-26-2009, 04:14 AM
Explantion of {elapsed_time} - by El Forum - 10-26-2009, 04:18 AM
Explantion of {elapsed_time} - by El Forum - 10-26-2009, 04:21 AM
Explantion of {elapsed_time} - by El Forum - 10-26-2009, 04:26 AM
Explantion of {elapsed_time} - by El Forum - 10-26-2009, 04:46 AM
Explantion of {elapsed_time} - by El Forum - 10-26-2009, 04:53 AM
Explantion of {elapsed_time} - by El Forum - 10-26-2009, 04:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB