Gym Management System In PHP MySQL | CampCodes ...

Gym Management System in PHP MySQL

February 25, 2022
gym 1

Gym Management System in PHP MySQL


The Gym Management System is a simple PHP/MySQLi project that manages a fitness gym business memberships and payments records. The system stores the fitness gym membership plans, packages, and trainers.

Main Components of the System

Membership Plans. The plan list helps organize the member’s selected plan for his/her membership with the fitness gym. Each plan are one-time payment only, which means that the membership fee of the members are based on their selected plan. This refers to how long the member will be marked as an active member in the fitness gym.

Packages List. The packages list refers to the list of packages that the fitness gym management offers to their members. This program of the fitness gym is payable by month until the expiration of the member’s membership.

Trainers List. The trainer list will be used if the member will hire also a trainer if every trainer is not included in his/her package. The trainer’s rate will be added to the monthly amount payable to the member.

Renewal of Membership. The membership can be renewed when the fitness gym member’s membership plan will expire, which means the member can extend his/her membership, and the gym management system will include the membership fee again to the first-month payment of the member after his/her previous membership expires.

Change of Membership Plan or Packages. The gym management or the system user must end the plan of the member if the member will change his/her membership plan or packages after his/her previous membership plan expires to allow the system to know that the member is not active anymore in any membership plan and packages.


  • Login Page
    • The page where the system users will submit their system credentials to access the gym management system data.
  • Home Page
    • The page where the system users will be redirected by default after logging in.
  • Plan Page
    • The page where the fitness gym membership plans are listed and can be managed.
  • Packages Page
    • The page where the system users will populate the list of the packages they offer to their members.
  • Members Page
    • The page where the fitness gym members are listed and managed.
  • Member Details Modal
    • The popup modal in the member’s page that shows the member’s details, and active/previous membership plans.
  • Trainers Page
    • The page where the list of fitness gym trainers are listed and managed.
  • Membership Validity Page
    • ​​​​​​​The page where the list of active member’s plan are listed and managed.
  • Schedule Page
    • ​​​​​​​The page where the user can schedule or store the expected date of the member’s presence. This feature is only for the fitness gym management’s reference to check the expected members on a certain date.

System Snapshots of Some Features

Plan Page

plan page
Packages Page

packages page

Members Page

members page

Membership Validity

membership validity page

Trainers Page

trainers page

Schedule Page

schedule pageHow to Run

To run this system you must downloaded and installed a local web server such as the XAMPP on your PC or laptop (for Windows).

1st Step: Open your XAMPP Control Panel then start Apache and MySQL in it

2nd Step: Download and Extract the source code zip file (See download button)

3rd Step:  Copy the extracted source code folder and paste it into the xampp/htdocs

4th  Step: Open a browser and go to URL “http://localhost/phpmyadmin/”

5th Step: Create a new database naming it gym_db.

6th Step: Import the SQL file located in the database folder of the source code.

After Creating a Database

8th Step:  Open a web browser and browse the project [http://localhost/gym-management-system

Admin Default Access

Username: admin

Password: admin123

Download Now






  • Hello,

    plans.php:77 data-description=””

    maybe from package.php?
    this line delete is OK.

    Thanks good project.

    nakayan June 5, 2023 1:38 pm Reply
  • In database many table missing like user, trainers, registration_info. Plz upload real database not incomplete

    Ma May 26, 2023 12:40 am Reply
  • Greetings, thank you for this project ! is there a chance that I can get the diagrams for this project like the UML diagrams?

    thank you,

    Abood99 May 18, 2023 3:17 pm Reply
  • hello this was wonderful i’m thinking if i can get the codes of this project just for school project of ours. i’ll appreciate if you do Thanks

    Mharon Mariano March 31, 2023 9:38 pm Reply
  • do you have documentation file for gym management system

    joel July 6, 2022 10:29 pm Reply
    • How to do

      payment method

      Shoaib February 2, 2024 2:07 am Reply
  • user & password not working

    cris July 6, 2022 10:53 am Reply
    • bc password bata de

      Anonymous December 29, 2023 3:20 pm Reply
  • documentation no

    Anonymous May 26, 2022 3:45 pm Reply
  • Warning: mysqli::__construct(): (HY000/1049): Unknown database ‘gym_db’ in C:\xampp\htdocs\gym1\db_connect.php on line 3

    this is the error in login.php page

    bert May 21, 2022 5:17 pm Reply
  • Hello! This gym membership management system is great! However, whenever the payments are already overdue, the system says “Exprired” rather than “Expired”. May I know how to edit this? Thanks!

    Josiah May 18, 2022 8:45 pm Reply
  • Hello, I’m getting a login error(username or password is incorrect)
    Please tell me how to fix it

    Priyanka Udayar March 11, 2022 7:10 pm Reply

      AKASH April 16, 2022 10:38 pm Reply
      • hi i have the same issue and it still doesnt work

        Dylan Fitzpatrick May 4, 2022 8:42 pm Reply
    • How to do

      payment method

      Shoaib February 2, 2024 2:04 am Reply

Leave a Reply

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