[eluser]Solarpitch[/eluser]
Hey,
I have a simple model function to return the sum of this column, however all it returns is Object id #14.
I know I'm probably not getting the result set correctly but I'm not sure how? I take it you dont need a loop to get the result set?
This is what I have...
Code:
function test()
{
$this->db->select_sum('price');
$query = $this->db->get('sales');
$row = $query->row();
return $row;
}