Jump to content

ferryboi

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ferryboi's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Howdy All i currently have <? echo $guild ['name'];?> and i want to put <> around what is shown from the $guild ['name'] , but where ever i try the <> it cancels out and just doesnt show the name any more - currently its making us do the following <-<? echo $guild ['name'];?>-> as even if we try an echo with jsut the < and > it cancels it out Any specific way in which i can do this thanks
  2. Hmm Strange :/ I tried <? if ($character = $armory->getCharacter($charname)) { echo "The if statement evaluated to true"; } else { echo "The if statement evaluated to false"; }?> And no matter what character name i add in true or false it just keeps coming back with "The if statement evaluated to true" function __construct($region, $realm, $character, $ignoreFields = FALSE) { if ($ignoreFields != FALSE){ $this->excludeFields($ignoreFields); } $this->region = strtolower($region); $this->realm = $realm; $this->name = $character; $jsonConnect = new jsonConnect(); $this->characterData = $jsonConnect->getCharacter($character, $realm, $region, implode(",",$this->fields)); if ($this->characterData != FALSE){ $this->name = $this->characterData['name']; $this->setTitles(); $this->setTalentTreeSelected(); $this->race = new Races($region); $this->class = new Classes($region); } else { return FALSE; } return TRUE; } That seems to be the isolated section from the API class file , not sure if that will help at all
  3. Hey Guys, Im using an API to run a few calls and im not too experienced with them $character = $armory->getCharacter('bob'); // Character name This is the call it is making now apparently if the name bob doesnt exist then it is meant to provide a "FALSE" response but im just wondering how to check the response - when the name is correct everything displays as it should do What im aiming for is to get the following somehow $character = $armory->getCharacter('deathecus');// Character name If the name exists > continue on > if its false then redirect to a not found page
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.