foreach ($query->result() as $row)
{
echo anchor("forum/topic/$row->topicid", my_html_escape(($row->name)), 'attributs');
echo ' by ';
echo $this->Stuff->get_topic_author($row->topicid);
echo ' replies ';
echo $this->Stuff->get_replies($row->topicid);
echo ' Last post ';
echo $this->Stuff->get_topic_last_post($row->topicid);
echo br();
}
This has been bothering me for a while. Let's say I have that code I want to pass this to a view and easily output it in a loop.
say this in my view
foreach blah as row
row->name
row->topicauthor
row->replies
row->lasttopic
end foreach
How?