View Single Post
Old 05-20-2008, 05:26 PM   #3 (permalink)
ReSpawN
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

Well, sort of helped I guess.

I can't figure out how to display the brackets though.

Currently I've got:
PHP Code:
    foreach (countBrackets($totalPlayers) as $key => $value) {
        
$key++;
        
$keys $key.'::'.$value[1];
        
array_push($bracketArray$keys);
    }
    
    
    
print_r($bracketArray); 
Now, this displays Array ( [0] => 1::16 [1] => 2::8 [2] => 3::4 [3] => 4::2 ) but now how I want it to.

How do I now, print out the 4 rounds, which each corresponding number of brackets in that round.
It should be displayed somewhat like this:

Code:
Round 1     Round 2     Round 3     Round 4
1           1           3           8
2                                   
3           3           
4
5           6           8
6
7
8           8
Of course, each value from 1 to 8 in the first round will be printed vertically with each an unique top: Xpx; value. Same goes for round two, but then automaticly with a new left: Xpx; and top: Xpx; value.

Well, it would be a HUGE help you you guys could help me out here.
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote