Welcome Guest, Not a member yet? Register   Sign In
Something wierd here
#6

[eluser]Todlerone[/eluser]
[quote author="n0xie" date="1305141374"]Yeah because when you foreach your array, $pf['plan_fraction_partial_fraction'] doesn't exist since $pf gets assigned the values of your array as shown in the output of your first example.

if you want to make your code work do this:
Code:
echo '<pre>'; print_r($plan_fract); echo '</pre>';
$my_array = array($plan_fract);

foreach ($my_array as $pf):
...
[/quote]

TY n0xie. That was the trick. Funny though, I haven't had this problem before with passing arrays to my view. I have to work through the reason again for this so that I truely understand it.
CHEERS


Messages In This Thread
Something wierd here - by El Forum - 05-10-2011, 02:50 PM
Something wierd here - by El Forum - 05-11-2011, 12:28 AM
Something wierd here - by El Forum - 05-11-2011, 08:09 AM
Something wierd here - by El Forum - 05-11-2011, 08:16 AM
Something wierd here - by El Forum - 05-11-2011, 08:19 AM
Something wierd here - by El Forum - 05-11-2011, 08:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB