Hi. I havea bit of a dilema here. Ok, this is what I have;
$gold = $gold_{$categoryis};
$categoryis is defined a little further up, with either Local, Regional or Global.
Then I have 3 variables deifned as;
$gold_Local = 5;
$gold_Regional = 8;
$gold_Global = 10;
However, I get a parse error on like 238, which is the $gold = $gold_... part.
Anyone know how to do what I am doing? Basically, a link is grabbed from MySQL, it has either Local, Regional or Global defined as the category type. What I need to do is echo assign the correct 'value' to the differnt types to a variable called 'gold'. Anyone got any ideas?
Thanks, and sorry if I'm confusing
Andy
$gold = $gold_{$categoryis};
$categoryis is defined a little further up, with either Local, Regional or Global.
Then I have 3 variables deifned as;
$gold_Local = 5;
$gold_Regional = 8;
$gold_Global = 10;
However, I get a parse error on like 238, which is the $gold = $gold_... part.
Anyone know how to do what I am doing? Basically, a link is grabbed from MySQL, it has either Local, Regional or Global defined as the category type. What I need to do is echo assign the correct 'value' to the differnt types to a variable called 'gold'. Anyone got any ideas?
Thanks, and sorry if I'm confusing
Andy