Assign Positions to Students Result

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kolly
    New Member
    • May 2013
    • 4

    Assign Positions to Students Result

    I am developing a web application for a school that will allow them to register student and computed, and print students result. I am done with calculating the result but the only thing remain for me to do is assign position for each students. the position I mean is first, second, third position and so on.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    it looks like you want to sort your results.

    Comment

    • Mukesh9023
      New Member
      • Nov 2013
      • 11

      #3
      take all marks of students in array and then make array key index with the help of students marks in descending order and then sort it by ksort function. you got your result correctly.

      Comment

      Working...