Gym Management System in PHP MySQL with Source Code

A fully functional project based on Gym Management 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 gym memberships, services, and daily records. This web application’s concept is all clear. It’s the same as real-life scenarios and well-implemented on it. To download free Gym Management System Project in PHP MySQL with source code files, please scroll down to the bottom of this post for the Download button.

About Gym Management System Project in PHP

In particular, this Gym Management System Project in PHP focuses mainly on managing daily records. To be more precise, the system helps to keep track of customers and track activities with respect to their chosen services. Also, the system displays all the available service packages. In addition, the system allows online registration for the customers. Evidently, this project contains an admin panel with customer and staff panels. In an overview of this web application, customers have to register in order to use the services ( Here, every registration requires approval action from the admin. A customer can manage his/her to-do list in order to keep track of their activities. In fact, all these customer activities are visible to the system administrators. In addition to it, customers can view gym announcements, and notifications from the admin. Besides, the user can view his/her gym report.

Staff Panel

Just like the customer panel, this system contains an employee/staff panel that highlights most of the important records. All the staff members are controlled by the gym administrator regarding their details and designation. A staff member can view overall records on the number of members, total earnings, equipment, and so on. As mentioned earlier, the customer’s to-do list is visible to staff members all well, but none are allowed to interfere. The system allows access to view members’ status too( Here, the user can view a list of registered customers’ details with their account status. Denoted with active, expired, or pending. Besides all of these, the staff members can manage payments, alert members, and maintain members’ attendance.

Admin Panel and Member Management

An administrator has full control over the system. He/she can manage customers, equipment, status, payment, 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 members’ records directly by filling up required forms. During the member registration, an admin has to provide details such as name, contact, services, plans, registration date, and total amount. In fact, this registration process directly contributes to total earnings, unlike customer self-registration. Also, an admin has to manage all the pending member records( An account only gets activated unless he/she completes the payment process. With it, each and every gym member has its own account status. Only the active accounts can log into the system whereas the remaining won’t be able to log into the system.

Gym Equipment and Attendance Management

Similarly, an administrator can manage and list out a number of gym equipment. For this, the user has to provide a number of details related to equipment. That includes the name of equipment with description, purchase date, quantity, vendor details, and total cost. All these records are directly tied up to the expenses section and in fact, it is in one or the other form. With the management of this section, the system calculates total expenses from gym equipment and lists them out under the dashboard. This way, the system helps to keep track of each and every side of records. Additionally, the admin can simply manage attendance for their members. The working term of attendance is that the system will keep track of check-in and out of each member and marks under the reports section. With it, the admin can list out attendance records with their total working days.

Payments and Send Notifications

Moreover, each and every member are required to make their payments in time. These payments totally rely upon the selected services and plans. In fact, these payment plans and be changed anytime. Here, the payment calculation is done by the selected services amount upon total plans. Also, an admin and staff members can only proceed with the payment process. For this, the user has to select any of the customers, select existing plans (monthly, yearly), and set account status. After each successful transaction, the system provides payment receipts. These receipts contain all the important details starting from the transaction date to the charge per month and the total amount( In addition, the user can print out these receipts too. In terms of sending notifications, an admin can alert customers regarding fees due with a single click of a button. With this, the customers can view alert messages from their respective accounts.

Gym Announcement and Staff Management

On one hand, only the administrator can set and manage announcements for the customers. This particular section helps to alert the system users regarding upcoming events, news, and other gym-related information. In fact, it’s a great way to convey messages around. In order to announce messages, the admin has to provide text messages with an applied date. As a result, the announcement can be visible from each and every user’s panel. Also, the system contains a section that allows the admin to manage staff members( The management of staff members requires details such as name, email, gender, contact information, designation, and set up login details. There’s no registration form available for the user to self register themselves as staff members, unlike customers.

Customer’s Progress and Report

On the other hand, the system also helps to keep track of their customer’s progress. It requires a number of initial information like weight and body type. In order to manage the customer’s progress, the system requires the customer’s initial and current weight with initial and current body type. And after, the system calculates the total percentage of progress done within a certain period of time. Besides, the admin can view reports on various topics. These topics include a report on members, customer progress, and an overall report using chart representation. Under the overall report, the system presents figure illustrations on services, total earnings, and expenses reports using bar graphs. Whereas, both members and progress reports display the overall members’ report with their in-depth details where the admin can also download/print a copy of it. The report includes details such as membership id, service, plan, charge, payments info, and others.

Also, some other important chart reports are also visible from the admin dashboard which highlights important topics. Such as services report and income, and expenses report. Last but not least, a clean and simple dashboard is presented with various color combinations for a greater user experience while using this Online Gym 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 Gym Management System Project in PHP MySQL which includes an admin panel with customer and staff panel. That contains all the essential features to follow up and is a knowledgeable resource for learning purposes.

Available Features:
  • Admin Panel
  • Customer Panel
  • Staff Panel
  • Customer Management
  • Staff Management
  • Customer’s To-Do List
  • Reminders
  • Gym Announcement
  • Gym Equipment Management
  • Attendance Management
  • Manage Customer’s Progress
  • Member’s Account Status
  • Notify Customers/Alert
  • Payments and Plans
  • Payment Receipts
  • Download/Print Receipts
  • Total Earnings
  • Search Records
  • Services Report
  • Earnings and Expenses Report
  • Member’s Report
  • Customer’s Progress Report
Project Name:Gym Management System Project
Language/s Used:PHP
PHP version (Recommended):5.6, 7.4
Type:Web Application
Developer:Naseeb Bajracharya
Gym Management 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 Gym Management System Project in PHP MySQL. For this particular PHP project, PHP Version 5.6 or 7.4 is required because the project does 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 Gym Management System Project in PHP Source Code. So, this online gym management 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 Gym Management System Project in PHP MySQL with Source Code:
Click the Download Button Below to Start Downloading

Note: Only for Educational Purpose


  1. Hello.
    Imported the DB and uploaded the Project.
    But it cannot open the pages after login.
    Do I need o install some aditional pacakeges?

      1. Uploaded the Project.
        I use credentials to Login to Admin Panel.
        I a admin Panel I see “connection Failed”

        1. Nope, you’re doing it wrong. You’ve not set any database connection for this project. It won’t work that way as every PHP project requires a database in order to operate.

    1. Because by default, the member’s status is set to “pending” after registration and you’ve to make payment for the members (using the admin panel) in order to mark the member’s account as “active”

  2. Managed to Login.
    Some twicks need to be maid.
    Check the syntax of the headers, include and look for all database connection files.
    Also check the sql execution on php. it uses $conn but should be con.

    This system is amazing. Thanks for sharing it. Loved it

  3. Hello, do you know why i get invalid username and pw message although i entered the correct ones from the db

    1. Some twicks need to be maid.
      Check the syntax of the headers, include and look for all database connection files.
      Also check the sql execution on php. it uses $conn but should be con

  4. Hi, I hope you’re fine.

    Do you know why I recieve this error on Registered Members List page:

    C:\xampp\htdocs\gym-system\admin\attendance.php on line 95
    Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\gym-system\admin\attendance.php on line 102
    C:\xampp\htdocs\gym-system\admin\attendance.php on line 95

  5. hello I try to deploy the project but
    Warning: Cannot modify header information – headers already sent by (output started at/……………………

  6. When we try to login with your credentials, it takes us to admin/index.php but that files does not exist. Please help me out with a fix for this.

    1. That’s impossible. You can also check the admin folders to see if there are all the required PHP files. Re-download the project and try once again. Also, do let us know about the error messages!

  7. why i am not able to change admin username and admin password ?

    you have mentioned this in codes but if incase i want to choose or i want to add admins in my project i am not able to do this why ? sir, i am thankful that you had uploaded these projects and i am using it for my final year project But my external will ask me to add more admin then how can i add . please give reply as soon as possible .

  8. hello sir firstly thanks for the project just a small query i am trying to change the password of the admin from a long time but am not able to i have updated the password in database in mysql any help you can do

  9. Hello sir

    Thanks for this great project

    Where i can change currency symbol to my cuntry symbol thanks again

  10. Hello!
    How to change the display of the exact time in the “Manage Attendance” option, because when I press the “Check In” button, a different time than the current time is displayed. The time in the project is +2h45m, different from the current time.

  11. Fatal error: Uncaught mysqli_sql_exception: Access denied for user ‘root’@’localhost’ (using password: NO) in C……………………….

      1. I need to change password to submit it as university assignment, like its password is “”, but I can cause negative marks on my assignment, so how I can change its password?

  12. Member Entry Form

    Warning: Undefined array key “services” in C:\xampp\htdocs\Gym-System\admin\add-member-req.php on line 61

    Fatal error: Uncaught TypeError: Unsupported operand types: string * string in C:\xampp\htdocs\Gym-System\admin\add-member-req.php:72 Stack trace: #0 {main} thrown in C:\xampp\htdocs\Gym-System\admin\add-member-req.php on line 72

    1. Well, the issues you’re seeing there can be due to changes in PHP version. As mentioned in the project overview table and text files, this project works well with PHP 5 and 7. Updated features, enhancements, and changes in syntax are frequently added in new PHP versions, which could end up in difficulties generating previously functional code.

  13. do you have a Hierarchical Input Process Output Model, Hipo Chart for the admin and the user or staff, and Entity Relationship Diagram for this system

  14. C:\xampp\htdocs\Gym-System\admin\attendance.php on line 95
    Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\Gym-System\admin\attendance.php on line 102
    how to solved

  15. hello. can you help me, after I enter the amin login ifo, the admin/index.php show me a blank screen. reply me ASAP please thanks.

    1. Ensure that the database connection is correctly configured and established. And if everything is perfect, then there are chances it might be due to your latest version of PHP.

  16. Thank you. From the depths of my heart. Very well structured and easy to follow. So far so good. I’ll be back with questions.

    1. Is there any specific error messages when you try to login as staff? Also, the login details that we’ve provided in the text file is only for admin panel.

  17. Fatal error: Uncaught mysqli_sql_exception: Unknown database ‘gymnsb’ in C:\xampp\htdocs\Gym-System-updated\Gym-System\dbcon.php:2 Stack trace: #0 ……………………………..

    how can i solve this error

    1. That’s because you haven’t created any database for the project. First, create a database named ‘gymnsb’ and then import the provided database file.

  18. I’m not able to click on Manage Members, Gym equipment, Attendance and reports in the output and also the logo(images) are not dispalyed.

    1. You can create your own Staff account from Admin panel. For customer, there’s a register button from the customer panel or you can either create from Admin panel.

    1. You’re not supposed to enter “PROJECT_FOLDER_NAME” as it is in the URL. That’s just a placeholder, there you have to replace [PROJECT_FOLDER_NAME] with the actual name of the project’s folder.

  19. There is an error in file add-member-req.php
    string operand multplication error on line 72 . we have to add
    plan =floatval()

Leave a Reply

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