Log in

View Full Version : First time div in php need some advice how to start it.



chrjoh88
03-27-2010, 03:48 AM
Hi there i need to get div classes to the Warrior Paladin...Etc.
How should i do it. A example would be great, you learn alot from testing when u know ateast how to begin.

@echo $classArray <div>warrior</div> something like that ?


class wow_guild{
private $assignstr = '';
private $classArray;
private $raceArray;
private $rankArray;
function __construct(){
global $cfg;
$this->classArray = array('0', 'Warrior', 'Paladin', 'Hunter', 'Rogue', 'Priest', 'Death Knight', 'Shaman', 'Mage', 'Warlock', '10', 'Druid');
$this->raceArray = array('0', 'Human', 'Orc', 'Dwarf', 'Night Elf', 'Undead', 'Tauren', 'Gnome', 'Troll', '9', 'Blood Elf', 'Draenei');
$this->rankArray = explode(',', $cfg['plugin']['roster']['txt_ranks']);
}


Thx anyways :)

n1tr0b
03-30-2010, 03:20 AM
what do you mean?? I didn't get ya

chrjoh88
04-07-2010, 04:19 PM
From the classArray as Warrior i want to make Warrior Paladin Hunter etc from my CSS stylesheet to make it example .warrior {color:#532344;}

So when i get every one that got the "class Warrior" to have the
"warrior div tag" to be class colors
http://www.wowwiki.com/Class_colors


class wow_guild{
private $assignstr = '';
private $classArray;
private $raceArray;
private $rankArray;
function __construct(){
global $cfg;
$this->classArray = array('0', 'Warrior', 'Paladin', 'Hunter', 'Rogue', 'Priest', 'Death Knight', 'Shaman', 'Mage', 'Warlock', '10', 'Druid');
$this->raceArray = array('0', 'Human', 'Orc', 'Dwarf', 'Night Elf', 'Undead', 'Tauren', 'Gnome', 'Troll', '9', 'Blood Elf', 'Draenei');
$this->rankArray = explode(',', $cfg['plugin']['roster']['txt_ranks']);
}