[eluser]Unknown[/eluser]
Fixed my issue. Evidently, I wasn't working with an array.
changes in View:
Code:
<?php foreach ($result as $val){ ?>
<h3><?php echo $val['shipping_id']; ?></h3>
<br/>
<?php } ?>
changes in Model:
Code:
function getTestData(){
$data = array();
$q = $this->db->get('shipping',5);
if($q->num_rows() > 0){
foreach($q->result_array() as $row){
$data[] = $row;
}
}
$q->free_result();
return $data;
}
I know this is a little different form the first version which was only one array, where this is an array of arrays.