Welcome Guest, Not a member yet? Register   Sign In
[newbie] I need help (database listing)
#2

[eluser]geocine[/eluser]
Where is the formularz.php please paste it.

Change this:

Code:
foreach ($this->News->get_news()->result() as $val)
{
echo $val->news_title.'<BR />';
}

To this:

Code:
$qs = $this->News->get_news();
foreach ($qs->result() as $val)
{
echo $val->news_title.'<BR />';
}

so that get_news() is not called every loop.


Messages In This Thread
[newbie] I need help (database listing) - by El Forum - 05-23-2009, 02:39 PM
[newbie] I need help (database listing) - by El Forum - 05-23-2009, 07:54 PM
[newbie] I need help (database listing) - by El Forum - 05-24-2009, 02:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB