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.