Originally posted by wildmurphy
Help, here is the code
while ($ array = fetching loads or rows) {
$x=array[1];
echo $GLOBALS['cost_$x'];
}
Try:
while ($ array = fetching loads or rows) {
$x=array[1];
echo $GLOBALS["cost_$x"];
}
Instead. (I changed the single ' to ")
I also am confused somewhat by the statement
echo $GLOBALS['cost_$x'];
What is cost_$x?