Storing the number of wins, draws and losses, points for and points against, in the database would be enough. Then in the reporting, the Points column would be calculated as:
$goaldifference = $goalsfor - $goalsagainst;
You could even do all that in your MySQL query. What is your table structure?













Hi Guys,
I'm trying to create a league table system for my football content managed system:
So I have my league table:
I want to then create an admin screen which I can enter the results in:
and then when I hit submit the table is updated accordingly.
I have not got the feintest where to start and to create rules such as +3 points for every win, add 2 goals every goal conceded -1 etc. Can anyone point me in the right direction?
Thanks
Chris