Many things have been making my school web application malfunction. One of which is the students' result page. Scores are not been calculated properly, values are not showing up.
For example, the student who has the scores in the image below shows he has both the highest and lowest scores in his class. However, there are others with both higher and lower marks.
Everything used to work properly, even now on localhost. I'm on the latest PHP version.
How do I start debugging. What could be the problem?