Welcome Guest, Not a member yet? Register   Sign In
Problems with arrays
#5

[eluser]InsiteFX[/eluser]
You need to define it before you can use it...
Code:
<?php
// define the variable.
var $actual_price;

foreach ($records as $item):
   foreach ($price as $code){
if($code->cat == $item->price){$actual_price = $code->val;}

...more code

endforeach;
?>


Messages In This Thread
Problems with arrays - by El Forum - 03-25-2012, 10:40 AM
Problems with arrays - by El Forum - 03-25-2012, 10:46 AM
Problems with arrays - by El Forum - 03-25-2012, 01:02 PM
Problems with arrays - by El Forum - 03-25-2012, 01:05 PM
Problems with arrays - by El Forum - 03-25-2012, 01:19 PM
Problems with arrays - by El Forum - 03-25-2012, 01:34 PM
Problems with arrays - by El Forum - 03-25-2012, 01:40 PM
Problems with arrays - by El Forum - 03-25-2012, 01:50 PM
Problems with arrays - by El Forum - 03-25-2012, 01:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB