[eluser]CroNiX[/eluser]
result() and result_array() both return an array.
result() returns an array of objects (each row of the array is a result stored as an object)
result_array() returns an array of arrays, where each row in the array is an array of the results.
For result(), you'd access the properties...
Code:
foreach($query->result() as $result)
{
echo $result->some_column;
}
For result_array(), you'd access the array key...
Code:
foreach($query->result_array() as $result)
{
echo $result['some_column'];
}