0

How to code cummulative score in Html, PHP and MySQL

I'm working on school result portal. A result checking app. In each year, there are three kinds of exams. After entering scores for the exams, how can I display different columns for cummulative scores for the second and third exam?

5th Aug 2023, 5:46 PM
Omolola Kolawole Victor
Omolola Kolawole Victor - avatar
2 Respuestas
+ 1
If the data comes from the database, you can implement cumulative sum (running total) in mysql query with different techniques: - using custom variable - using window functions https://popsql.com/learn-sql/mysql/how-to-calculate-cumulative-sum-running-total-in-mysql
6th Aug 2023, 11:29 AM
Tibor Santa
Tibor Santa - avatar
+ 1
Thank you
26th Dec 2023, 6:45 PM
Omolola Kolawole Victor
Omolola Kolawole Victor - avatar