winston1984
IS-IT--Management
I was going to do this using an SQL query but decided better of it.
I have a database which cannot be changed, structure:
Name 1 2 3 4 5 6 7 8 9 10 Total
Phil 3 4 5 2 5 0 4 3 2 1 29
I am happy to create the total dynamically on the page, however, this is a league table of scores, only the best 8 scores count. Therefore, I want it to be displayed:
Name 1 2 3 4 5 6 7 8 9 10 Total
Phil 3 4 5 2 5 0 4 3 2 0 28
How can I take the values from the database, find the top 8 and then display them. Also the match number must be kept so that I can put the correct scores against the correct match.
Any ideas?
I have a database which cannot be changed, structure:
Name 1 2 3 4 5 6 7 8 9 10 Total
Phil 3 4 5 2 5 0 4 3 2 1 29
I am happy to create the total dynamically on the page, however, this is a league table of scores, only the best 8 scores count. Therefore, I want it to be displayed:
Name 1 2 3 4 5 6 7 8 9 10 Total
Phil 3 4 5 2 5 0 4 3 2 0 28
How can I take the values from the database, find the top 8 and then display them. Also the match number must be kept so that I can put the correct scores against the correct match.
Any ideas?