Welcome Guest, Not a member yet? Register   Sign In
Problems getting foreach loop to display data
#6

[eluser]Rowan Wilson[/eluser]
ok cool, your result is there so that's good. I just wanted to make sure everything came through the same as your $results query as you said that worked.

Revert to how you previously were passing your fingerguard variable straight into data.

Code:
$data['fingerguards'] = $this->accessories_model->get_fingerguards($limit);

The non-object error is probably because, in your view you are trying to echo out item code as an array rather than an object like all the others.

Here:
Code:
<?php echo $fingerguard['item_code'] ?>
Should be:
Code:
<?php echo $fingerguard->item_code ?>


Messages In This Thread
Problems getting foreach loop to display data - by El Forum - 01-08-2013, 05:28 AM
Problems getting foreach loop to display data - by El Forum - 01-08-2013, 06:19 AM
Problems getting foreach loop to display data - by El Forum - 01-08-2013, 06:27 AM
Problems getting foreach loop to display data - by El Forum - 01-08-2013, 06:49 AM
Problems getting foreach loop to display data - by El Forum - 01-08-2013, 07:05 AM
Problems getting foreach loop to display data - by El Forum - 01-08-2013, 07:29 AM
Problems getting foreach loop to display data - by El Forum - 01-08-2013, 07:39 AM
Problems getting foreach loop to display data - by El Forum - 01-08-2013, 07:53 AM
Problems getting foreach loop to display data - by El Forum - 01-08-2013, 08:03 AM
Problems getting foreach loop to display data - by El Forum - 01-08-2013, 08:16 AM
Problems getting foreach loop to display data - by El Forum - 01-08-2013, 08:28 AM
Problems getting foreach loop to display data - by El Forum - 01-08-2013, 08:28 AM
Problems getting foreach loop to display data - by El Forum - 01-08-2013, 08:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB