Hello guys, I’m trying to make a student exam system and I’m having a problem with displaying the correct grade and the exam for the students.

My problem is that instead of 2 exams, I can only see one exam in the view results page. Also, the score it’s computed wrong(it should be 6/10 instead of 6/4), and in the database everything seems fine

Main page it’s fine, I can see the 2 exams listed:

r/webdev - Form it's not displayed properly

dashboard view

but on the View result page I can only see one exam and I don’t understand why…

r/webdev - Form it's not displayed properly

view result page

Exams DB:

r/webdev - Form it's not displayed properly

exams db

Exam answers for the asd user:

r/webdev - Form it's not displayed properly

asd user answer

Here’s my code: <?php include “mysql-connect.php”; date_default_timezone_set – Pastebin.com

What am I doing wrong? Thanks!



Source link

Write A Comment