Hey, for the last hour or so i've been trying to figure out how i can update the users ranking with my league script. What i am trying to do is query all the points from the race_results table, group them by racer id, and then give them a rank number 1-8 based on their points. It might be just the way the application is configured (form fields are arrays and data is inputted for each form field). The rank would be updated on the season_racers table in prev_pos column.
Everything works but this, I'm really stuck. I'm thinking a function would work but even then i don't get how i could do it. Maybe I'm just dumb...