I'm not a complete newb, but I have not worked much with arrays, which I think is what i need here.
So I am creating a page that gets data from a postgresql database, the page is here: http://www.eiublue.com/topten/indoor_men.php
This is for my track and field team. Times are entered into the database, the two main tables are results and result_athlete (my full ERD is here. This allows for relays (multiple athletes in a single event, the result_id is listed multiple times in the results table with separate athlete_ids).
Here are the rules for a top ten list
-No athlete can be on a list for an event more than
--No relay team (all 4 members in the same order) can be on a list more than once.
So I am thinking I might need to add a 'leg' column to my result_athlete to keep track of what leg of the relay each person runs.
But my real problem is on the output, and if the result is outputted or not (becuase of only being limited to 1 apperace per list).
Any help would be appreciated.