We are trying to get part of a API Working and we are getting a litle stuck
$armory = new BattlenetArmory('EU','Azjol-Nerub'); //ex. ('US', 'Exodar')
Above is part of the code within the Api script and what we are looking for is a way to "populate" the EU and Azjol-Nerub parts dynamically so hopefully we could have another page feeding the 2 variables into this script.
Hardcoded the script works without a sniff of a problem .... However
I dont know if this even works but this is what i ventured as a newbie and tried :
$test='EU';
$armory = new BattlenetArmory('.$test.','Azjol-Nerub'); //ex. ('US', 'Exodar')
$test='EU';
$armory = new BattlenetArmory('<?php echo $test ?>','Azjol-Nerub'); //ex. ('US', 'Exodar')
And it broke
Im not too sure how to get around this .. even if there is a way to get around it
Im hoping someone might be able to lend me a hand with this if possible and for me to possibly learn as to where im going wrong
thanks