[eluser]kevinprince[/eluser]
Hi,
Im having a small problem with some code I've written, for some reason when I do my foreach loop in the view, im only getting the first letter displaying of each row, and applying the foreach to the columns not the rows.
All very odd, heres the code extract:
Code:
$get_licences = $this->db->query("SELECT * FROM `vk_licences` WHERE `gid` = '" . $gid . "'");
This is the the go get from DB bit
Code:
$member = array(
'licence' => $get_licences->row_array()
)
I add the row_array() into my view array
Code:
</tr>
<?php foreach($licence as $item):?>
<tr class="odd">
<td><?php echo $item['wkgb']; ?></td>
<td><?php echo $item['expiry']; ?></td>
</tr>
<?php endforeach ?>
The bit in the loop
Any help appreciated!