![]() |
PHP Group Array "teams" and add up points
hey all :-)
Now i have been trying to figure this our for ages, and its just not coming to me :/ Heres the scenario, i am creating a flatfile points system for a school. all information is read from an excel file, points are generated from an algorithm i created and the points per student are outputted, there is an output generated below: i cant figure out how to just display the team and the teams overall points. Quote:
Quote:
PHP Code:
PHP Code:
i am using http://code.google.com/p/php-excel-reader/ to read the excel file. |
Nice job so far, you could output the data like so:
PHP Code:
|
Just a usability tip, I'd go one step further and spit that stuff out in a table vs a pre after you get the data sorted. :)
|
Cheers :)
im only using pre for development, i actulary have a very nice table UI that i will be using ;p I think the problem with that would be that we dont know the exact name of each and every team, so i dont want to hardcore teamnames in.. so there could be unlimated teams with unlimated students in each.. i understand the theory what i need to do, i just cant put the code into practise! :( |
| All times are GMT. The time now is 05:44 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0