This is pretty simple but having a bit of trouble.
I have an exams table and in it are 2 fields, exam_number, and exam_score. The exams are in consecutive order from 1 to 10. However, people can take any exam they want at any given time.
I want to make a dynamic table that lists in one column the exams (1 to 10, and not just the ones that are in the database and are finished) and the scores for those (if it is empty then there is no score).
My database is like this
exam_number exam_score
2 90
5 60
and in php I want to echo this
exam_number exam_score
1 0
2 90
3 0
4 0
5 60
6 0
7 0
8 0
etc.
Thank you!! 🙂