Welcome Guest, Not a member yet? Register   Sign In
Can echo out of controller but don't understand how pass to view?
#12

[eluser]Pascal Kriete[/eluser]
Yup, found the error. When using:
Code:
$query->result();
It returns an object, so you access your variables using
Code:
$row->name
$row->id

To get an associative array do:
Code:
$query->result_array();


Messages In This Thread
Can echo out of controller but don't understand how pass to view? - by El Forum - 01-18-2008, 02:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB