Student Grading System in PHP MySQL with Source Code

A fully functional project based on Student Grading System Project which uses PHP Language with MySQL Database. Following PHP project contains all the essential features which can be in use by the second-year IT students for their college projects. It has a number of features that will allow users to manage the results of the students with grading criteria. This web application’s concept is all clear. It’s the same as real-life scenarios and well-implemented on it. To download free Student Grading System Project in PHP MySQL with source code files, please scroll down to the bottom of this post for the Download button.

About Student Grading System PHP Project

In particular, this Student Grading System Project in PHP focuses mainly on managing student-related records. To be more precise, the system helps to keep track of students and track results with respect to their chosen level. Also, the system displays all the available faculty and departments. In addition, the system allows setting up courses too( Evidently, this project contains an admin panel with a student panel. In an overview of this web application, the student has to log into the system using the credentials provided by the administrator. The students can view their enrolled list of courses with their respective faculty, department, and semester. Additionally, the students can view their personal semester results. In fact, the result section displays the overall grade with points, total units, and scores obtained. With it, the system also allows printing/downloading the result. Besides, the students can view and update their profiles.

Admin Panel

An administrator has full control over the system. He/she can manage students, faculties, departments, and so on. Here, each and every section has its own respective details such as name, and other important details. Here, an admin can add students’ records directly by filling up required forms. During the customer registration, an admin has to provide details such as name, level, faculty, department, session, and matric number. But before any of these, the admin first has to set up a number of fields for further process. It includes sessions(, faculty, and department. For the management of these mentioned terms, the user has to provide names and other important details. In fact, faculties and departments are linked to each other and the department section depends upon the selected faculty. Similarly, the student registration form also includes a faculty field that only returns department names depending upon the selected faculty.

Course Management

Moreover, an admin has to set up and manage all the courses( for the students. In order to manage this section, an admin has to provide the course title with code, unit, level, semester, and faculty. Here, the system does list a number of courses for each mentioned semester. This means the user can store a number of courses in different semesters. In fact, the whole point of result calculation falls under this rule of the system. With it, the course unit helps to play a vital role in calculating total course units during the management of student results. As mentioned earlier, the faculty and department fields are interconnected to each other. As a result, this particular thing helps to differentiate students based on their studies and course. Either way, all the students enrolled under a particular faculty department contain the course set under the same faculty department.

Grading Management

On one hand, the system allows the administrator to request for computing the student’s GPA. For this, the admin has to filter the student manually by providing level, session, faculty, and department. And the system returns search results based on the user’s request which the admin can select semester-wise. Here, the semester field depends upon the number of semester details provided by the admin during the system management. While proceeding toward the GPA section( for computing the semester’s results, the admin has to provide the total scores obtained under each course. At last, the user can compute a result. The same procedure goes on and on depending upon the semesters. Meanwhile, the system gets ready with the overall score of the student with GPA, class of diploma, total unit, and more. With it, now the administrator can proceed to compute the student’s CGPA.

Student Result Management, Grading Criteria

On the other hand, the user can view overall results and grading criteria. Once the system computes a student’s CGPA, then the admin can request his/her results. The student filtration process is the same as mentioned earlier. Here, the user can view each( student’s semester-wise results as well as final results. In terms of semester-wise results, the system displays details such as the name of the course with units, scores obtained, grades, GPA, class of diploma, and more. Also, the user can print/download the results in PDF format. Regarding final results, the system displays the name of the student with his/her matric number, faculty, department, CGPA, and a class of diploma. In fact, all the results are properly calculated and highlighted under respective classes such as distinction, upper class, and so on. Besides, the admin can view grading criteria and update user profiles.

In addition to it, the students can also view their respective results once after it gets managed by the administrator. Also, all the important overall records can be viewed easily from the admin dashboard. It helps to highlight the total number of failed and passed students and more. Last but not least, a clean and simple dashboard is presented with various color combinations for a greater user experience while using this Online Student Grading Management System Project in PHP MySQL. For its UI elements, a free open-source CSS framework; Bootstrap is on board with some Vanilla CSS too. Presenting a new Student Grading System Project in PHP MySQL which includes an admin panel with a student panel. That too contains all the essential features to follow up and is a knowledgeable resource for learning purposes.

Available Features:
  • Admin Panel
  • Student Panel
  • Manage Current Session
  • Set up Faculty, Departments
  • Student Management
  • Course Management
  • Compute GPA
  • Compute CGPA
  • Manage results semester-wise
  • View Student’s Result
  • Print/Download Student’s Result (PDF)
  • View/Update User Profiles
  • Grading Criteria
  • Search Records
Project Name:Student Grading System Project in PHP
Language/s Used:PHP
PHP version (Recommended):5.6, 7.4
Type:Web Application
Developer:Sodiq Ahmed
Student Grading System PHP Project Overview

Instructions: How to Run?

  • After you finish downloading the project, unzip the project file and head over to your XAMPP directory.
  • There you’ll find a folder naming “htdocs”.
  • Inside the “htdocs” folder, paste the project folder (not the .zip one, but the extracted one).
  • Open your favorite browser; we recommend using Google Chrome or Mozilla Firefox.
  • Then, go to the URL “http://localhost/phpmyadmin“.
  • Create a Database with a name that is provided inside the “01 LOGIN DETAILS & PROJECT INFO.txt”.
  • Click on the “Import” tab and choose the database file (.sql) which is provided under the folder naming “DATABASE FILE”.
  • After setting up all these, go to the URL “http://localhost/[ PROJECT_FOLDER_NAME ]/“
  • All the login details are provided inside the project folder, check that out and enter them in order to use it.

And there you have it, a full setup of the Student Grading System Project in PHP MySQL. For this particular PHP project, PHP Version 5.6 or 7.4 is required because the project might not operate with the oldest PHP version. So, users with the oldest PHP version (older than 5.6) might face various problems while operating it. As a result, you’ll need to manage your PHP version (only if you’re using the old version) at the moment. Also, Download Free Student Grading Management System Project in PHP Source Code – So, this online student grading system PHP project is a fully functional project for all the intermediate levels that broads vast knowledge into such PHP web applications. In conclusion, this whole PHP project with free source code is an absolute project and a meaningful way for the users to learn and explore more about it.

Free Download Student Grading System Project in PHP MySQL with Source Code:
Click the Download Button Below to Start Downloading

Note: Only for Educational Purpose


  1. hello i have downloaded this project for college final year project.i have an a isssue after clicking login button only blank screen is coming. not able login , plzz contact asap i have to submit project

    1. That might be due to your LATEST version of PHP. This project was tested only with PHP 5.6 and 7.4
      Can we know about your PHP version?
      Also, make sure you’ve established a database connection for this project with the given db file.

  2. Hi, i’ve tried to login like admin but it seems like there is not admin panel but only superadmin panel 😒

  3. Connection FailAccess denied for user ‘root’@’localhost’ (using password: NO)

    this is my error message pls help

        1. You can try this:

          Solution provided by: FRANCIS AGIBU KARGBO

          A simple fix to all those that are having blank results (web page). Follow the steps below:
          1. Open the htdocs folder.
          2. Open the project name folder and search for “dbconnection” or “dbconnection.php” file.
          3. Open the file with any text editor preferably vs code of sublime text.
          4. Change the if statement from;
          if (mysqli_connect_errno($con))
          echo “Failed to connect to MySQL: ” . mysqli_connect_error();


          if (!$con)
          echo “Failed to connect to MySQL: ” . mysqli_connect_error();

          5. Save the changes and open the project filename in the browser using

          1. How did you solve the blank page one? I am still facing the same problem of a blank page after login in.

  4. Hello, this project is my graduation title but your project is not working completely and where can I put dompdf file after I download it . I hope u help me as soon as possible.

      1. Hello, please could you tell me exactely in which directory of the project files i have to place “DomPdf” file?
        Because i don’t know exactely in which directory or folder i have to place that “DomPdf” file in the project….
        so that it can allow me to print files or results.
        Please i need the response???

          1. Actually, i have already check the file but i don’t get a clearly explaination about this issue….
            It said that in file :(01 LOGIN DETAILS & PROJECT INFO):
            But the problem i don’t understand very well which directory or folder they are talking about bcoz i’ve already download “DomPdf” but i don’t know where to place it in the project file ??
            That why i’m asking you to give me more clarification about it Please…??

  5. Thank you boss for the great project, but please can I get similar project for secondary schools as this is meant for University. I have a project of similar in which am using secondary school as a case study.

  6. Thank you Sir for the great project. I want to develop this project. Like adding some things or converting the project to codeigniter, but I need your help for this. Is it possible to contact your developers for the purpose of implementing it?

  7. Hello Sir. This is a very detailed and well developed robust system. Thank you so much for the effort inputted. I don’t have the same issues like others, only problem is the website looks decluttered after loading it with chrome. All those beautiful boxes and arrangements are gone. All I have here is almost only texts like it was built with no CSS.
    What could be the reason for this please? Thank you

  8. Yes sir. Can I have your contact detail so I can share you the screenshot of what it looks like here.
    I’m dumbfounded

  9. Could it be the browsers I’m opening it with?
    Or could it be that the css has been tampered with?
    Please I need answers as soon as you read, its my final year project and I’m due to submit on Monday

      1. I have reached out to your contact since three days ago. Nobody is replying me. Please and please help me out. I’m losing time. You are the only one that can help me out with this problem.

      1. What the correct directory Sir, no one is explaining it better, at least a short video or good explanation with step by step won’t Be bad. Please admin kindly attend to this.

  10. Warning: require_once(C:/xampp/htdocs\student-gradings\includes\config.php): failed to open stream: No such file or directory in C:\xampp\htdocs\gradings\includes\initialize.php on line 21

    Fatal error: require_once(): Failed opening required ‘C:/xampp/htdocs\student-gradings\includes\config.php’ (include_path=’\xampp\php\PEAR’) in C:\xampp\htdocs\gradings\includes\initialize.php on line 21

  11. Warning: require_once(../StudentGradingSystem-PHP\StudentGradingSystem-PHP\superAdmin\printSemesterResult.php): failed to open stream: No such file or directory in C:\xampp\htdocs\StudentGradingSystem-PHP\StudentGradingSystem-PHP\superAdmin\printSemesterResult.php on line 3…………………….

  12. hello sir
    i saw a comment on how to solve that blank page i did it but still got an error message Parse error: syntax error, unexpected identifier “to”, expecting “,” or “;” in C:\xampp\htdocs\StudentGradingSystem-PHP\includes\dbconnection.php on line 8

  13. When I run the project in localhost, it shows this message : The Encrypt library requires the Mcrypt extension.Please help me because I followed all the instructions.

  14. I tried adding students but I wasn’t adding can you help details and also how to change the user password (student). Thanks for this wonderful project

  15. When I go to the login page, I cannot log in with the given username and password. It said, “Connection FailServer sent charset unknown to the client. Please, report to the developers”. I use utf8_unicode_ci for phpmyadmin and config mysql also

    1. Seems like there’s a charset issue causing the login problem. Ensure the database connection charset settings match across the application and the database. Check that both PHP and MySQL are configured to use the same charset (like utf8_unicode_ci) to resolve this mismatch.

  16. superadmin index is blank, based on retracing THE PROBLEM is the DATABASE , some tables are missing.

    Warning: Undefined variable $matricNo in C:\xampp\htdocs\StudentGradingSystem-PHP\includes\dataValues.php on line 5

    Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\StudentGradingSystem-PHP\includes\dataValues.php on line 7

    Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\StudentGradingSystem-PHP\includes\dataValues.php on line 8

    Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\StudentGradingSystem-PHP\includes\dataValues.php on line 9

    Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\StudentGradingSystem-PHP\includes\dataValues.php on line 14

    Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\StudentGradingSystem-PHP\includes\dataValues.php on line 19

    Fatal error: Uncaught mysqli_sql_exception: Table ‘resultgrading.tblattendance’ doesn’t exist in C:\xampp\htdocs\StudentGradingSystem-PHP\includes\dataValues……………………….

    1. Looks like some tables, including ‘tblattendance,’ are missing in your database, causing undefined variables and array offset warnings. Please make sure that all required tables are created and populated in your database. (Do not forget to created a database named ‘resultgrading’ and import the given SQL file)

  17. When i click compute CGPA, it shows like this>
    Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in C:\Users\user\Desktop\kartik\htdocs\COURSE EVALUATION AND FEEDBACK SYSTEM\COURSE EVALUATION AND FEEDBACK SYSTEM\superAdmin\finalResult.php on line 191


    Warning: require_once(../dompdf/ failed to open stream: No such file or directory in C:\Users\user\Desktop\kartik\htdocs\COURSE EVALUATION AND FEEDBACK SYSTEM\COURSE EVALUATION AND FEEDBACK SYSTEM\superAdmin\printGradingCriteria.php on line 3………….

    1. DomPDF has been removed from the directory due to excessive file size. Download “dompdf” and place it under the directory with the same folder name as mentioned

  19. Hi Sir, your work is an excellent achievement so far, the only problem i notice or come across is that student added to level 1 in 2021/2022 session after adding another nd makes it to be the active session those student were not promoted they still remain in level 1 instead of moving to level 2 since the current academic session is 2022/2023.

  20. The database doesn’t include the tblAttendance which resulted in a fatal error from the datavalue.php and The code hide error with alert.error(0) .Can you help me with that? After I delete the that it shows me all the errors are coming from the datavalue.php .

  21. how to edit the admin password and username as my wish?
    i have tried to edit the password using phpmyadmin but whenever i login and it shows failed

Leave a Reply

Your email address will not be published. Required fields are marked *