09-24-2008, 03:18 PM
[eluser]Kinsbane[/eluser]
[quote author="Kinsbane" date="1222308954"]Well, I must say, I am a pretty fart smeller. For a while I didn't know why I was getting the last record in the dataset (id #6), because of the way I was assigning the data to the $data['divisions']. (each loop was replacing the data previously there).
I guess at that point I would then need to have $data['divisions'][1], $data['divisions'][2], etc..[/quote]
Yup, that did it:
[quote author="Kinsbane" date="1222308954"]Well, I must say, I am a pretty fart smeller. For a while I didn't know why I was getting the last record in the dataset (id #6), because of the way I was assigning the data to the $data['divisions']. (each loop was replacing the data previously there).
I guess at that point I would then need to have $data['divisions'][1], $data['divisions'][2], etc..[/quote]
Yup, that did it:
Code:
$index = 0;
foreach($this->divisions->result_array() as $row)
{
$data['division'][$index] = $row;
print_r($row);
$index++;
}