I have the following code in my model but want the results to be returned in a table rather than array format. How do I do that?
function info_car ( $id )
{
$this->db->select( 'car_id,car_vin_number,car_make,car_model,car_year,car_color,location_location_id,source_source_id' );
$this->db->where( 'car_id', $id );
$this->db->from('car');
$query = $this->db->get();
if ( $query->num_rows() > 0 )
{
$row = $query->row_array();
return $row;
}
}