DOI : 10.5281/zenodo.24822781
- Open Access

- Authors : Solanki Aman M, Parmar Durgesh A., Thakor Ravi B., Prajapati Meet M., Pinakini Patel
- Paper ID : IJERTV15IS112044
- Volume & Issue : Volume 15, Issue 11 , November – 2026
- Published (First Online): 04-12-2026
- ISSN (Online) : 2278-0181
- Publisher Name : IJERT
- License:
This work is licensed under a Creative Commons Attribution 4.0 International License
Design and Development of a Gym Management System Using Web Technologies
Solanki Aman M. (1) , Parmar Durgesh A. (1) , Thakor Ravi B. (1) , Prajapati Meet M. (1) , Pinakini Patel (2)
(1) MCA Student, Faculty of IT and Computer Science, Swaminarayan University, Kalol, Gujarat, India
(2) Project Guide, Faculty of IT and Computer Science, Swaminarayan University, Kalol, Gujarat, India
Abstract – Small and medium gyms often depend on paper registers and spreadsheets for member records, fee collection and attendance, which leads to missed renewals, untracked dues and slow reporting. This paper presents the design and implementation of a web-based Gym Management System built with HTML, CSS, JavaScript, Bootstrap, PHP and MySQL on the XAMPP stack. The system provides ten modules: authentication, a dashboard, member management, membership plans, membership expiry tracking, attendance with check-in and check-out, trainer management, payment management, reports and profile management. Membership status is derived from the plan end date rather than stored, so the dashboard always reflects the current state without scheduled jobs. Security measures include session-based access control, bcrypt password hashing, PDO prepared statements, CSRF tokens and output escaping. The implementation was verified with 42 automated black-box functional test cases, including SQL injection, cross-site scripting and CSRF checks, and with responsive-layout checks at mobile and tablet widths; all test cases passed. Benefits such as time saved for gym staff are discussed as expected outcomes, since no field study with a real gym was conducted.
Keywords – Gym management system, web application, PHP, MySQL, membership expiry tracking, attendance management, secure web development.
-
INTRODUCTION
Fitness centres have grown in number in Indian cities and towns, and many of them are run by small teams. Daily work includes registering members, selling time-based plans, collecting fees, recording visits and following up on renewals. When these records are kept on paper, the owner cannot easily see which memberships have expired, how much fee is pending or how regularly members attend.
Web applications offer a low-cost way to centralise these records. A browser-based system running on a local server needs no installation on each client device and can be opened from a laptop, tablet or phone on the same network. This paper describes such a system developed as an MCA minor project, explains its design decisions, and reports the results of its functional testing.
-
PROBLEM STATEMENT
The manual process used in many small gyms has the following problems: (i) member and fee data are spread across registers and receipt books; (ii) there is no automatic warning before a membership expires; (iii) part payments and pending dues are hard to track; (iv) attendance is either not recorded or cannot be analysed; and (v) monthly reports must be prepared by hand. The problem addressed in this work is to build a simple, secure and responsive web application that solves these issues using free and widely taught technologies.
-
OBJECTIVES
-
To provide secure administrator authentication with hashed passwords and session control.
-
To support create, read, update, delete and search
operations for members, plans, trainers and payments.
-
To calculate membership end dates automatically and classify memberships as Active, Expiring Soon or Expired.
-
To record attendance with check-in and check-out, allowing entry only to members with a valid plan.
-
To produce printable and CSV reports for members, attendance and payments.
-
To apply common web security practices against SQL injection, XSS and CSRF, and to keep the interface usable on small screens.
-
-
LITERATURE REVIEW
Yau and Hamid Ali [1] developed a web-based system for a fitness centre in Malaysia that replaced paper notebooks and handled memberships, workout and diet plans, health status and payments, using PHP, JavaScript, HTML and CSS with the waterfall model and functional testing. Badrul Kamal and Mohd. Yasin [2] built a management system for a women’s fitness studio covering registration, training programs, appointment booking, inventory and online payment with PHP, MySQL, JavaScript and Bootstrap.
Sarfaraz et al. [3] presented EZ Fitness, a fitness centre management system developed with the Django framework that centralises registration, membership and related operations. Ingle et al. [4] described a gym management system based on a browser/server (B/S) architecture with modules for member, coach and complaint management. Bhandge et al. [S] proposed a gym ERP system that adds machine-learning based face recognition for attendance. Nishanthan [6] developed a web-based gym management system for a fitness centre in Jaffna as a master’s dissertation.
These works confirm that web technologies are suitable for gym administration. Several of them add advanced features such as online booking, face recognition or cloud deployment, which raise cost and complexity for a small gym. The present work focuses on a lightweight single- administrator system with automatic expiry tracking derived from dates, transactional creation of membership
and payment records, attendance rules tied to plan validity, and explicit security controls recommended by OWASP [7], [8].
-
PROPOSED METHODOLOGY
The project followed the waterfall model [9]: requirement analysis from observation of typical gym work, system design (architecture, ER model and database schema), module-wise implementation, testing and documentation. The database was designed using the entity- relationship approach [10] and normalised so that each fact is stored once [11]. Development used PHP 8 with the PDO extension [12], MySQL [13] and Bootstrap S [14]. Bootstrap files are stored locally so that the application works without internet access.
A key design decision is that membership status is not stored as a column. It is computed from end_date on every request: Expired if the end date is before today, Expiring Soon if it falls within the next seven days, and Active otherwise. This removes the need for a daily update job and avoids stale data.
-
SYSTEM ARCHITECTURE
The system uses a three-tier architecture (Fig. 1). The presentation tier is a responsive Bootstrap interface. The application tier runs on Apache with PHP; each protected page first checks the session, then validates input and the CSRF token, executes module logic and accesses the database only through prepared statements. The data tier is a MySQL database of seven InnoDB tables.
Fig. 1. Three-tier architecture of the proposed system
The ER model (Fig. 2) contains admins, trainers, members, plans, memberships, payments and attendance. Foreign keys use ON DELETE CASCADE from members to dependent records, ON DELETE SET NULL for a deleted trainer or membership reference, and ON DELETE RESTRICT so that a plan in use cannot be removed.
Fig. 2. Entity-relationship diagram of the database
-
IMPLEMENTATION
The source code is organised into a configuration file for the PDO connection, shared include files (helper functions, authentication check, header with sidebar, footer) and one PHP fil per screen. The main modules are summarised below.
-
Authentication: password_verify() against bcrypt hashes created by password_hash(), session ID regeneration after login, and session destruction on logout.
-
Members: automatic member codes (GYM0001 .), validation of name, ten-digit mobile number, e-mail and dates, duplicate-mobile check, search by name, code, phone or e-mail, and status filter.
-
Memberships: end date = start date + plan months – 1 day; on renewal the new plan starts the day after the current plan ends. The membership row and its payment row are inserted inside one database transaction.
-
Attendance: check-in is allowed only when a membership covers the current date and the member has no open visit; check-out stores the time and the duration is shown.
-
Payments and reports: Paid/Pending status, part payments, a Mark Paid action, date and status filters, and reports with totals by payment mode that can be printed or exported as CSV.
All state-changing actions use POST forms with a per- session CSRF token, and all output is escaped with htmlspecialchars(). Fig. 3 shows the dashboard.
Fig. 3. Dashboard of the implemented system (demo data)
-
-
RESULTS AND DISCUSSION
-
Tested results
The application was tested with an automated black-box test script that sends real HTTP requests to the running application on PHP 8.3 and checks both the returned pages and the database state. Because a MySQL server was not available in the test environment, the same PDO code was connected to an SQLite database generated from the project’s SQL script; the application uses only standard SQL constructs that run on both engines. Table I summarises the results.
Module
Test cases
Passed
Login
6
6
Dashboard
2
2
Members
8
8
Membership
4
4
Plans
3
3
Attendance
4
4
Trainers
3
3
Payments
4
4
Reports
3
3
Profile
3
3
Security
2
2
Total
42
42
TABLE I. Functional test results by module
membership, trainer, payment and attendance data, derives membership status automatically from dates, and applies standard security controls. Functional testing with 42 test cases, including security and responsive-layout checks, showed that the implemented features work as specified. The system is suitable as a low-cost starting point for digitising small gym operations.
X. FUTURE SCOPE
Future work includes a member self-service portal, SMS or e-mail reminders before expiry, QR-code based self check-in, online payment and PDF receipts, role-based access for trainers and staff, multi-branch support, and a field evaluation with a partner gym to measure the expected benefits.
All 42 test cases passed. The security tests showed that a login attempt containing SQL injection text was refused, a script tag entered in the search box was displayed as plain text, and a delete request without a valid CSRF token was rejected. Database rules behaved as designed: deleting a trainer kept their members with no trainer assigned, deleting a member removed related memberships, payments and attendance, and deleting a plan in use was blocked. Expiry lists and dashboard totals matched values computed directly from the database. A headless Chrome check of all main pages at 390 px and 820 px widths found no horizontal overflow outside scrollable tables. No PHP error, warning or notice was logged during the test run.
-
Expected benefits (not measured)
The following benefits are expected but were not measured, because the system has not yet been deployed in a real gym: less time spent searching records, fewer missed renewals due to the seven-day expiry list, better follow-up of pending dues, and faster monthly reporting. A field study with gym staff is needed to quantify these effects.
-
Limitations
The current version supports a single administrator role, does not send automatic reminders, and has not been load- tested with large data volumes or multiple concurrent users. The final deployment on XAMPP with MySQL should be verified by repeating the functional tests on that platform.
-
-
CONCLUSION
This paper presented the design and implementation of a web-based Gym Management System using PHP, MySQL and Bootstrap. The system centralises member, plan,
REFERENCES
-
C. J. Yau and F. A. Hamid Ali, “The Development of Daddy Hero Fitness Center using Web Based System,” Applied Information Technology and Computer Science, vol. 2, no. 2, pp. 1098-1110, 2021, doi: 10.30880/aitcs.2021.02.02.068.
-
S. A. Badrul Kamal and S. Mohd. Yasin, “Superwomen Fitness Management System,” Applied Information Technology and Computer Science, vol. 6, no. 1, pp. 683-700, 202S, doi: 10.30880/aitcs.202S.06.01.038.
-
S. K. Sarfaraz, F. Khan, S. Singh, V. Kumar and V. Mishra, “EZ Fitness Gym Management System,” International Research Journal of Engineering and Technology (IRJET), vol. 12, no. S, pp. 624+, May 202S.
-
M. Ingle, S. Panpatil, D. Mengal, P. Patil and R. Kolte, “Gym Management System for Modern Fitness Centers,” International Journal of Engineering Research & Technology (IJERT), vol. 1S, no. 6, 2026, doi: 10.S281/zenodo.20841344.
-
M. Nishanthan, “JK Fitness Office: Web based Gym Management System,” M.I.T. dissertation, University of Colombo School of Computing, Sri Lanka, 2021.
-
OWASP Foundation, “OWASP Top 10:2021.” [Online]. Available: https://owasp.org/Top10/
-
OWASP Foundation, “SQL Injection Prevention Cheat Sheet” and “Cross-Site Request Forgery Prevention Cheat Sheet.” [Online].
Available: https://cheatsheetseries.owasp.org/
-
R. S. Pressman and B. R. Maxim, Software Engineering: A Practitioner’s Approach, 9th ed. New York: McGraw-Hill, 2020.
-
P. P. Chen, “The Entity-Relationship Model-Toward a Unified View of Data,” ACM Transactions on Database Systems, vol. 1, no. 1, pp. 9-36, 1976.
-
R. Elmasri and S. B. Navathe, Fundamentals of Database Systems, 7th ed. Pearson, 2016.
-
The PHP Group, “PHP Manual: PHP Data Objects and Password Hashing.” [Online]. Available: https://www.php.net/manual/en/
-
Oracle Corporation, “MySQL 8.0 Reference Manual.” [Online].
Available: https://dev.mysql.com/doc/refman/8.0/en/
- p>Bootstrap Team, “Bootstrap S.3 Documentation.” [Online]. Available: https://getbootstrap.com/docs/S.3/
