Page 1 of 1

a league scenario

Posted: Sun Apr 03, 2005 11:37 pm
by phase
i coded a leagu in php a while ago, i am hoping to update it and make it easier to use for admin and users alike but i need some inspiration of how to go about it, i will firstly explain what i have, and the problems i have encountered, maybe some php guru could shed some light on a better way of approaching this system.

basically its a league, so as any league it has the following:
standings for the league
a number of divisions within the league
the teams
the players within the team
fixtures
results

currently i have it all working, but in a haphazard way, the only user involvement is they can edit their own team profile, add players and submit scores.
the main problem isthat when those scores get submitted, they do not automate the standings due to the way ive coded the site, admin have to manually retrieve the submitted scores from a db and them insert them into each team.

this is the scenario im hoping to acheive:
1) all teams approved, get sorted into divisions, this is easy to do, but then i want to have a script which makes all teams in that division play each other a set number of times (fixtures)

2) once those fixtures are set, the leaders of each team can submit the result, if both results are the same, the result gets placed into the results table of the db.

i really hope this makes sense, i would love to get some possible approaches to this scenario, if it doesnt make sense but you would liek to help, please post and ill try to elaborate more.

thanks, phase.

Posted: Thu Apr 14, 2005 5:54 am
by malcolmboston
i would be interested in further developinjg this concept for you for a personal project i have planned

if you are interested please private message me

Thanks, Mal