Welcome Guest, Not a member yet? Register   Sign In
Severity: 4096
#2

[eluser]eoinmcg[/eluser]
echo is for outputting strings, however, your model method 'select_teams()' returns a resource from the database. if you want to check it, for debugging purposes, try using var_dump() instead.

to display the results you'll need to do sth like this (in your view):

Code:
foreach($teams->result_array() as $team)
{
  echo $team['team'];
}


Messages In This Thread
Severity: 4096 - by El Forum - 10-06-2010, 12:10 AM
Severity: 4096 - by El Forum - 10-06-2010, 01:06 AM
Severity: 4096 - by El Forum - 10-06-2010, 02:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB