Results 1 to 3 of 3

Thread: First time div in php need some advice how to start it.

  1. #1
    Join Date
    Mar 2010
    Posts
    16
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Exclamation First time div in php need some advice how to start it.

    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 ?
    PHP Code:
    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
    Last edited by chrjoh88; 03-27-2010 at 01:59 PM.

  2. #2
    Join Date
    Apr 2009
    Location
    Mac OSX
    Posts
    14
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    what do you mean?? I didn't get ya

  3. #3
    Join Date
    Mar 2010
    Posts
    16
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    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

    PHP Code:
    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']);
        } 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •