01262007 0955 GMT-6

Im totally stumped here. Just note, Im just kinda writing this out so
this doesnt have to be this way. 

I need to be able to create a schedule on the fly. The first array is
$teams - each team has a number and name. The rest is easy to see,
except for the $teamsequence. What this does is, the array key refers to
number of teams, and the referenced array is the team sequence that will
play. 

$teams = array("1" => "Red", 
                "2" => "Green", 
                "3" => "Dark Blue",  
                "4" => "Gray", 
                "5" => "Light Blue", 
                "6" => "Orange", 
                "7" => "Yellow");
                                                 
$fields = array("10", "11");
$time = array("1400", "1530");
$startteam = "5";
         
$teamsequence = array(
"7" => array("5", "2", "6", "3", "7", "4", "1", "5"),
"6" => array("5", "2", "6", "3", "4", "1"),
"5" => array("5", "2", "3", "4", "1"),
"4" => array("2", "4", "3", "1")
);

So what I want to do is, when you click on the start team, and right now
it defaults to five, a schedule like this will be printed out:
Seven teams:
                        Spring Schedule 
                1300                    1530
        Field 10  Field 11       Field 10   Field 11
Mar 4    5 vs 2    6 vs 3         7 vs 4     1 vs 5  
Mar 11   2 vs 6    3 vs 7         4 vs 1     5 vs 2
Mar 18   6 vs 3    7 vs 4         1 vs 5     2 vs 6
Mar 25   3 vs 7    4 vs 1         5 vs 2     6 vs 3

Im have been staring at the screen for two days writing little code
snipbits but Im just not making any progress.

Wade


Reply via email to