continue
else if ($show == "conference")
{
if ($data['division'] == "Northeast" OR
$data['division'] == "Atlantic" OR
$data['division'] == "Southeast" OR
$data['division'] == "Eastern" OR // JJP 30-JAN-2013: WAY BACK DIVISIONS/CONFERENCES WERE THE SAME
$data['division'] == "East" OR
$data['division'] == "No division") // JJP 30-JAN-2013: EVEN FURTHER BACK DIVISION AND LEAGUE WERE THE SAME
{
$conference_data['Eastern'][] = array ("rank" => ++$eastern_conference_rank,
$data['team'],
$data['gp'],
$data['w'],
$data['l'],
$data['t'],
$data['otl'],
$data['sol'],
$data['pts'],
$data['gf'],
$data['ga'] );
}
else if ($data['division'] == "Central" OR
$data['division'] == "Pacific" OR
$data['division'] == "Northwest" OR
$data['division'] == "Western" OR // JJP 30-JAN-2013: WAY BACK DIVISIONS/CONFERENCES WERE THE SAME
$data['division'] == "West" )
{
$conference_data['Western'][] = array ("rank" => ++$western_conference_rank,
$data['team'],
$data['gp'],
$data['w'],
$data['l'],
$data['t'],
$data['otl'],
$data['sol'],
$data['pts'],
$data['gf'],
$data['ga'] );
}
else if ($data['division'] == "Smythe" OR
$data['division'] == "Norris")
{
$conference_data['Clarence Campbell'][] = array ("rank" => ++$eastern_conference_rank,
$data['team'],
$data['gp'],
$data['w'],
$data['l'],
$data['t'],
$data['otl'],
$data['sol'],
$data['pts'],
$data['gf'],
$data['ga'] );
}
else if ($data['division'] == "Patrick" OR
$data['division'] == "Adams")
{
$conference_data['Prince of Wales'][] = array ("rank" => ++$western_conference_rank,
$data['team'],
$data['gp'],
$data['w'],
$data['l'],
$data['t'],
$data['otl'],
$data['sol'],
$data['pts'],
$data['gf'],
$data['ga'] );
}
}
else
{
$league_data[] = array ("rank" => ++$league_rank,
$data['team'],
$data['gp'],
$data['w'],
$data['l'],
$data['t'],
$data['otl'],
$data['sol'],
$data['pts'],
$data['gf'],
$data['ga'] );
}
}
if ($show == "division")
{
foreach ($division_data as $dd => $v)
{
$output .= draw_table(array(
'title' => $dd,
'bold' => -1,
'headers' => array("Team", "GP", "W", "L", "T", "OTL", "SOL", "PTS", "GF", "GA"),
'fields' => $v,
'bgtitle' => '#EFEFEF',
'bgheaders' => '#DFDFDF',
'bgcolors' => array('#FFFFFF', '#EFEFEF'),
'widths' => array (300, 40, 40, 40, 40, 40, 40, 40, 40, 40) ));
}
}
else if ($show == "conference")
{
foreach ($conference_data as $cd => $v)
{
$output .= draw_table(array(
'title' => $cd,
'bold' => -1,
'headers' => array("Rank", "Team", "GP", "W", "L", "T", "OTL", "SOL", "PTS", "GF", "GA"),
'fields' => $v,
'bgtitle' => '#EFEFEF',
'bgheaders' => '#DFDFDF',
'bgcolors' => array('#FFFFFF', '#EFEFEF'),
'widths' => array (20, 300, 40, 40, 40, 40, 40, 40, 40, 40, 40) ));
}
}
else // $show == "league"
{
$output .= draw_table(array(
'title' => "NHL",
'bold' => -1,
'headers' => array("Rank", "Team", "GP", "W", "L", "T", "OTL", "SOL", "PTS", "GF", "GA"),
'fields' => $league_data,
'bgtitle' => '#EFEFEF',
'bgheaders' => '#DFDFDF',
'bgcolors' => array('#FFFFFF', '#EFEFEF'),
'widths' => NULL ));
}
$contents = eregi_replace("<!--%LEVEL_DROP_DOWN%-->", $level_select, $contents);
$contents = eregi_replace("<!--%SEASON_DROP_DOWN%-->", $season_select, $contents);
$contents = eregi_replace("<!--%CURRENT_SEASON%-->", $season_to_view, $contents);
$contents = eregi_replace("<!--%DATA%-->", $output, $contents);
return $contents;
}
?>
here is .htaccess code. he was using something other that .htaccess to get this to work so I will include that as well, just in case that is what is wrong
RewriteRule ^nhl/standings/(.*)$ ?opt=nhl_standings&show=$1&season=$1 [L,QSA]
his code
<rule name="Imported Rule 17" stopProcessing="true">
<match url="^nhl/standings/(.*)$" ignoreCase="false" />
<action type="Rewrite"
url="?opt=nhl_standings&show={R:1}&season={R:1}"
appendQueryString="true" />
</rule>