while($row = mysqli_fetch_assoc($result)) echo $row['name'] . ": " . $row['marks_obtained'] . "/" . $row['max_marks'] . "<br>"; $total_obtained += $row['marks_obtained']; $total_max += $row['max_marks'];
Liked this article? Subscribe for more PHP project tutorials (Hospital Management, Library System, E-commerce). school management system project with source code in php
function require_role($role) if(!isset($_SESSION['role']) while($row = mysqli_fetch_assoc($result)) echo $row['name']