query($sql); // Query to fetch all students from s5_end_marksheet (End of Term) $sql2 = "SELECT * FROM s5_end_marksheet"; $result2 = $conn->query($sql2); // Function to calculate grades based on marks (removed as per your request) // Function to calculate the grade function calculateGrade($marks) { if ($marks >= 80) { return "D1"; } elseif ($marks >= 75) { return "D2"; } elseif ($marks >= 70) { return "C3"; } elseif ($marks >= 65) { return "C4"; } elseif ($marks >= 60) { return "C5"; } elseif ($marks >= 50) { return "C6"; } elseif ($marks >= 45) { return "P7"; } elseif ($marks >= 40) { return "P8"; } else { return "F9"; } } ?>
P.O BOX 6809, Kampala
Phone: +256 786783513, +256 707644985
END OF YEAR ACADEMIC PROGRESSIVE REPORT CARD
Name | class | term | Year |
---|---|---|---|
Senior five | III | 2024 |
Subject | Mid Term Exam | End of Term Exam | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Grade | 2 | Grade | 3 | Grade | 4 | Grade | FGrade | 1 | Grade | 2 | Grade | 3 | Grade | 4 | Grade | FGrade | |
0 ? $row[$marks[0]] : ''; ?> | 0 ? calculateGrade($row[$marks[0]]) : ''; ?> | 0 ? $row[$marks[1]] : ''; ?> | 0 ? calculateGrade($row[$marks[1]]) : ''; ?> | 0 ? $row[$marks[2]] : ''; ?> | 0 ? calculateGrade($row[$marks[2]]) : ''; ?> | 0 ? $row[$marks[3]] : ''; ?> | 0 ? calculateGrade($row[$marks[3]]) : ''; ?> | 0 ? $row2[$marks[4]] : ''; ?> | 0 ? calculateGrade($row2[$marks[4]]) : ''; ?> | 0 ? $row2[$marks[5]] : ''; ?> | 0 ? calculateGrade($row2[$marks[5]]) : ''; ?> | 0 ? $row2[$marks[6]] : ''; ?> | 0 ? calculateGrade($row2[$marks[6]]) : ''; ?> | 0 ? $row2[$marks[7]] : ''; ?> | 0 ? calculateGrade($row2[$marks[7]]) : ''; ?> |
Grade | D1 | D2 | C3 | C4 | C5 | C6 | P7 | P8 | F9 |
---|---|---|---|---|---|---|---|---|---|
Range | 80 - 100 | 75 - 79 | 65 - 74 | 60 - 64 | 55 - 59 | 50 - 54 | 45 - 49 | 35 - 44 | 0 - 34 |