Originally posted by moose
hmm, already confused.. the leaguewebsite doesnt have a function for just displaying player statistics as its own page.. you can browse by team and it shows you that way,but there's no way to just have a 'league leaders' point of view
im sure theres a way maybe by calling and sorting the data from all 4 teams?
the ? after the address is how php passes variables through url's.
Just make a php file. You can copy-paste over most of the code from the one that displays the teams. Add in a form with a drop-down menu to select what you want to sort by, and a submit button at the top of it. When they select the option and hit submit, the php page can call itself back into the target frame. That form should have various options like Hit Perc, HR, Bases Hit, etc. In the php file you use $sortby = $_POST['nameofthesortform'] to grab the form's selected option and assign it for use.
Then query would be something along the lines of:
$query = "select * from team1,team2,team3 ORDER BY ";
$query .= $sortby;
You can then simply add an html link on the main menu loading that php file into the target frame, just like the current links that displays team standings & such.
Sorry if it's not that clear... I went from not writing any code at all since highschool to having to write a several thousand line site in the last few months.. I confuse myself regularly.
