You are on page 1of 40

GYM MANAGEMENT SYSTEM 5th Semester MCA

1. INTRODUCTION

1.1 Problem Definition

Existing system was manual, time consuming as data entry which include calculations
took lot of time, searching was very complex as there could be 100’s of entry every year, the
proposed system is expected to be faster than the existing system.

The project was made in order to effectively and efficient cater to requirements of the fitness
center. Very frequently the person who generally holds the tasks to manage the center needs to
keep records of all the transactions as well as data manually. Generally, in order to structure
these tasks separate registers are maintained. this whole process thus becomes quite cumbersome
for them to control manually. Moreover, any wrong data entered mistakenly can brings serious
results.

This manually managed system of the store was also heavily phoned to data loss due to certain
causes misplacement of registers destruction of registers, unauthorized access to registers etc.
which can bring in disastrous consequences.

The cost of maintaince of data and records of occurrence of transactions is very high, searching a
particular data specific to particular requirements is also very tedious in such system.in order to
retrieve records, the responsible person needs to manually locate the appropriate register and
locate the appropriate placement of that particular records which may be very time consuming.

1.2 Project Definition:


The project on gym management and database management and transactions. This system
is proposed to be an automate database management and transactions. This stores employee,
member, and payroll, receipts, and products information. It also provides the facility of search
and advanced search for searching the records efficiently and immediately. This system provides
data storing and report generation with graphical user interface.

Surana College, PG Department Page 1


GYM MANAGEMENT SYSTEM 5th Semester MCA

1.3 Purpose of the Project:


The system proposed has many advantages.

 The system is highly secured, because for login the system it requires the username and
password which is different for each department therefore providing each department a
different view of the customer information.
 It provides wide range of certain criteria in each window the client is working for better
and quicker solution.
 It maintains report for all criteria and transactions.
 Manages member’s information separately for all exercise and employee information
separately for all exercise and employee information separately for considering the
requirements of gym.
 This system can run on any windows operating system.

Surana College, PG Department Page 2


GYM MANAGEMENT SYSTEM 5th Semester MCA

2. LITERATURE SURVEY

2.1 Existing system:


The gym is working manually. The current system is time consuming and also it is very costly.
Because it involves a lot of paperwork. To manually handle the system was very difficult task.
But now-a-days computerization made easy to work

The drawbacks of the present system are listed below.

The following are the reasons why the current system should be computerized.

 To increase efficiency with reduced cost.

 To reduce the burden of paper work.

 To save time management for recording details of each and every member and employee.

 To generate required report easily.

2.2 Proposed system:


The proposed system is managed by the xampp which are user friendly windows for every user
and for maintaining the database MySQL is used.

The advantages of the proposed system are listed below.

 Manages member’s information separately for all exercise and employee information
separately for considering the requirements of gym.

 It is very flexible and user friendly.

 The person’s time and work is reduced very much which prevails in the present system.

 Easy and Helpful.

 The people are not limited to receive or provide services in working hours of the branch
only; he is serviced 24 hours a day, 7 days of week and 365 days of the year.

Surana College, PG Department Page 3


GYM MANAGEMENT SYSTEM 5th Semester MCA

2.3 About DBMS:

2.3.1 Introduction to DBMS:


A Database Management System (DBMS) is a system (software) that provides an
interface to database for information storage and retrieval. We are more interested in software
systems rather than manual systems because they can do the job more efficiently.

The common features of a DBMS include:

 Capacity for large amount of data.

 An easy to use interface language (SQL-structured query language).

 Efficient retrieval mechanisms.

 Multi-user support.

 Security management.

 Concurrency and transaction control.

 Persistent storage with backup and recovery for reliability.

The users of a database assume difference roles such as:

 End user - application programmers that use the DB as a storage subsystem.

 Designer - application programmers who design the layout of the DB.

 Administrator - operators who maintain the heath and efficiency of the DB.

 Implementer - programmers who maintain and develop the DBMS.

The key concepts of database includes:

 Schema - the structure and the constraints of data.

 Data - the actual content of the DB representing information.

 Data definition language - used to specify the schema.

Surana College, PG Department Page 4


GYM MANAGEMENT SYSTEM 5th Semester MCA

2.3.2 Database Functionalities:


The functionality provided by a DBMS can vary enormously. The core functionality is the
storage, retrieval and update of data. Codd proposed the following functions and services a fully-
fledged general purpose DBMS should provide:

 Data storage, retrieval and update.

 User accessible catalog or data dictionary describing the metadata.

 Support for transactions and concurrency

 Facilities for recovering the database should it become damaged.

 Support for authorization of access and update of data.

 Access support from remote locations.

 Enforcing constraints to ensure data in the database abides by certain rules.

2.4 About Tools

2.4.1 Information about Front end tool

Notepad:
Notepad is a common text-only (pain text) editor. The resulting files-typically saved with the
extension .txt –have no format tags or style, making the program suitable for editing system
file to use in a DOS environment and, occasionally, source code for later compilation or
execution, usually through a command prompt. It is also useful for its negligible use of
system resource; making for quick load time and processing time, especially on under-
powered hardware. Notepad support both left-to-right and right-to-left based languages.
Historically, Notepad did not treat newlines in UNIX-or classic Mac OS-style text files
correctly. However, on 8th May 2018, Microsoft announced that they had fixed this issue.

Notepad offers only the most basic text manipulation function, such as finding text. Only
newer versions of Windows include an updated version of Notepad with a search and replace
function. However, it has much less functionality in comparison to full-scale editors.

Surana College, PG Department Page 5


GYM MANAGEMENT SYSTEM 5th Semester MCA

2.4.2 Information about Back end tool

MySQL:
MySQL is an open source relational database management system (RDBMS). Its name is a
combination of “My”, the name of co-founders Michael Widenius’s daughter, and “SQL”, the
abbreviation for Structured Query Language.

MySQL is offered under two different editions: the open source MySQL Community Server and
the proprietary Enterprise Server MySQL Enterprise Server is differentiated by a series of
proprietary extensions which install as server plug-in, but otherwise shares the version
numbering system and is built from the same code base.

MySQL is written in C and C++. Its SQL parser is written in yacc, but it uses a home-brewed
lexical analyzer. MySQL works on many system platforms, including AIX, BSDi, FreeBSD, HP-
UX, eComStation, i5/OS, IRIX, Linux, macOS, Microsoft Windows, NetBSD, Novell NetWare,
OpenBSD, Open Solaris, OS/2 Warp, QNX, Oracle Solaris, Symbian, SunOS, SCO Open
Server, SCO UnixWare, Sanos and Tru64. A port of MySQL to OpenVMS also exists. The
MySQL server software itself and the client libraries use dual-licensing distribution. They are
offered under GPL version 2, beginning from 28 June 2000 (which in 2009 has been extended
with a FLOSS License Exception) or to use a proprietary license.

Support can be obtained from the official manual. Free support additionally is available in
different IRC channels and forums. Oracle offers paid support via its MySQL Enterprise
products. They differ in the scope of services and in price. Additionally, a number of third party
organizations exist to provide support and services, including Maria DB and Persona.

MySQL has received positive reviews, and reviewers noticed it "performs extremely well in the
average case" and that the "developer interfaces are there, and the documentation (not to mention
feedback in the real world via Web sites and the like) is very, very good”. It has also been tested
to be a "fast, stable and true multi-user, multi-threaded sql database server".

Surana College, PG Department Page 6


GYM MANAGEMENT SYSTEM 5th Semester MCA

2.5 HARDWARE AND SOFTWARE CONFIGURATION


2.5.1 Hardware Configuration:
Processor : 1 GHz or above
RAM : 2 GB
Hard Disk Drive : 40 GB
Keyboard : 104 keys
Mouse : Logitech Mouse
Monitor : 15” digital color monitor
Display Type : VGA

2.5.2 Software Configuration:

Operating System : Windows 7 or above


Web server : XAMPP Server
Web Browser : Chrome
Designing Tool : Notepad
Server Side Scripting : PHP
Client Side Scripting : HTML
Backend : MySQL

Surana College, PG Department Page 7


GYM MANAGEMENT SYSTEM 5th Semester MCA

3. SYSTEM REQUIREMENTS

3.1 Software Environment:


Software Environment is a technical specification of requirement of software product.
This specifies the environment for development, operation and maintenance of the product.
Technology used:

 XAMPP
 PHP
 MySQL
 HTML
XAMPP:

XAMPP is a free and open-source cross-platform web server solution stack package
developed by Apache Friends, consisting mainly of the Apache HTTP Server, Maria DB
database, and interpreters for script written in the PHP and Perl programming languages. Since
most actual web server deployments use the same components as XAMPP, it makes transitioning
from a local test server to a live server possible.
XAMPP is regularly updated to the latest releases of Apache, Maria DB, PHP and Perl. It
also comes with a number of other modules including Open SSL, phpMyAdmin, MediaWiki,
Joomla, Word Press and more. Self-contained, multiple instances of XAMPP can exist on a
single computer, and any given instance can be copied from one computer to another. XAMPP is
offered in both a full and a standard version (Smaller version).

PHP:

Hypertext Preprocessor (or simply PHP) is a server-side scripting language designed


for Web development. It was originally created by Rasmus Lerdorf in 1994; the PHP reference
implementation is now produced by The PHP Group. PHP originally stood for Personal Home
Page, but it now stands for the recursive initialism PHP: Hypertext Preprocessor.

Surana College, PG Department Page 8


GYM MANAGEMENT SYSTEM 5th Semester MCA

PHP code may be embedded into HTML code, or it can be used in combination with
various web template systems, web content management systems, and web frameworks. PHP
code is usually processed by a PHP interpreter implemented as a module in the web server or as
a Common Gateway Interface (CGI) executable. The web server combines the results of the
interpreted and executed PHP code, which may be any type of data, including images, with the
generated web page. PHP code may also be executed with a command-line interface (CLI) and
can be used to implement standalone graphical applications.

MySQL:
MySQL is an open source relational database management system (RDBMS). Its name is
a combination of “My”, the name of co-founders Michael Widenius’s daughter, and “SQL”, the
abbreviation for Structured Query Language.

MySQL is offered under two different editions: the open source MySQL Community
Server and the proprietary Enterprise Server MySQL Enterprise Server is differentiated by a
series of proprietary MySQL is an open source relational database management system
(RDBMS). Its name is a combination extensions which install as server plug-in, but otherwise
shares the version numbering system and is built from the same code base.

HTML:

The extended reach of information and services to customers that the Internet has
enabled, has created a new challenge for the developer. The developer should develop a user
interface that is distributable, available on multiple platforms and supports a wide range of client
environments from handheld wireless devices to high-end workstations. So to maintain a broad
reach to client environments and to achieve greatest compatibility with all browsers, this system
uses standard HTML.

Hyper Text Markup Language is the standard language for creating documents for the
World Wide Web. An HTML document is a text file, which contains the elements, in the form of
tags that a web browser uses to display text, multimedia objects, and hyperlinks using HTML;
we can format a document for display and add hyperlinks to other documents.

Surana College, PG Department Page 9


GYM MANAGEMENT SYSTEM 5th Semester MCA

4. IMPLEMENTATION DETAILS

During the software-testing phase each module of software is thoroughly tested for bugs
and for accuracy of output. The system developed is very user-friendly and the detailed
documentation is also given to the user as online help wherever necessary. The implementation
phase normally ends with the formal test involving all the components.

The entire system was developed using the PHP, HTML, XAMPP Server, and MySQL as
back end. The HTML is used to design the web page. The XAMPP Server is used to understand
the client’s request and to send response to them. The PHP are used for client-side validations so
that the user can enter only appropriate input in the input fields. The MySQL is the back end tool
where the database resides.

Hence the design of the entire system is user-friendly and simple the implementation has
been quite easy.

Surana College, PG Department Page 10


GYM MANAGEMENT SYSTEM 5th Semester MCA

4.1 Source code:

INDEX PAGE:
In this module a member can login with his userid and password which has given by the admin
while registration.

<? php
session_start();
require('db.php');
Susername="";
Serrors = array():
if (isset($_POST['login_user'])) {
Susername = mysqli_real_escape_string(Sconn, S_POST['username']); Spwd =
mysqli_real_escape_string(Sconn, $_POST['pwd']);
if (count(Serrors) ==0) {
Squery= "SELECT FROM login WHERE uname-Susername' AND pwd="Spwd":
Sresults = mysqli_query($conn, Squery); 1) {
if (mysqli_num_rows(Sresults) = $_SESSION['uname'] = Susername;
header("location.home.php");
}
Else
{
array_push(Serrors,
combination</b></div>");
}
}
?>

<!DOCTYPE html>
<html>
<head>
"<div
class='alert

Surana College, PG Department Page 11


GYM MANAGEMENT SYSTEM 5th Semester MCA

alert-warning><b>Wrong
username/pass
<title>gym management</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
rel="stylesheet"
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
position: fixed; z-index: -1000; width: 100%; height: 100%; overflow: hidden; left: 0;
<style type="text/css"> background
top: 0;
}
form (
width:30%;
margin-left:35%; margin-top:7%;
}
background-color: white;
hr{
}
.navbar{
background-color: transparent !important;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-md bg-dark navbar-dark"> <div class="container-fluid">
<a class="navbar-brand" href="index.php"><h3>GYM MANAGEMENT SYSTEM</h3></a>
</div>

Surana College, PG Department Page 12


GYM MANAGEMENT SYSTEM 5th Semester MCA

<nav>
<hr>
<h2 style="color:white; text-align:center;"> To be used by admin only.</h2>
<hr>
<form class="form" action="" method="post">
<input type="text" placeholder="USERNAME" required> <br/> mb-2
class="form-control
<input type="password" class="form-control
placeholder="PASSWORD" required> <br/>
<button
type="submit"
name="login_user">Login</button>
</form>
<div class="background"> <img src="images/gym_bg.jpg">
</div>
</body>
</html>

Surana College, PG Department Page 13


GYM MANAGEMENT SYSTEM 5th Semester MCA

Add member:
Here a new member enters to a gym he has to give his details to a gym admin, so that admin can
add a new member to a gym.

<?php
require('db.php'),
Serrors = array():
if (isset($_REQUEST['member'])) {
Smem_id=mysqli_real_escape_string(Sconn, S_REQUEST['id']); Sname =
mysqli_real_escape_string(Sconn, S_REQUEST['name']); Sdob=
mysqli_real_escape_string(Sconn, S_REQUEST['dob']); Spackage =
mysqli_real_escape_string(Sconn, S_REQUEST['package']); Smobileno =
mysqli_real_escape_string(Sconn, S REQUEST['mobileno']);
Spay_id=mysqli_real_escape_string(Sconn, S_REQUEST['pay_id']);
Strainer_id=mysqli_real_escape_string(Sconn, S_REQUEST['trainer_id]); Suser_check_query=
"SELECT FROM member WHERE mem_id-Smem_id' LIMIT 1". Sresult =
mysqli_query(Sconn, Suser_check_query); Suser=mysqli_fetch_assoc($result);
Sage=mysqli_real_escape_string(Sconn, $_REQUEST['age']);
if (Suser) …
Squery"INSERT INTO member
(mem_id,name,age,dob,package,mobileno,pay_id,trainer_id) VALUES('Smem_id',
'Sname','Sage","Sdob', 'Spackage","Smobileno, "Spay_id','Strainer_id'y",
Ssql-mysqli_query(Sconn, Squery),
if ($sql) {
Smsg="<div class='alert alert-success><b>Member added successfully</b></div>";
}
else
{
Smsg="<div class='alert alert-warning><b>Member not added</b></div>";
}
?>
<div class="container">

Surana College, PG Department Page 14


GYM MANAGEMENT SYSTEM 5th Semester MCA

<form class="form-group mt-3" method="post" action=""> <div><h3>ADD


MEMBER</h3></div>
<?php include('errors.php');
echo @Smsg;
<label class="mt-3">MEMBER ID</label>
<input type="text" name="id" class="form-control">
<label class="mt-3">MEMBER NAME</label>
<input type="text" name="name" class="form-control">
<label class="mt-3">AGE</label> <input…
<input type="text" name="package" class="form-control"> <label class="mt-3">MOBILE
NO</label>
<input type="text" name="mobileno" class="form-control">
<label class="mt-3">PAYMENT AREA ID</label>
<input type="text" name="pay_id" class="form-control">
<label class="mt-3">TRAINER ID</label>
<input type="text" name="
class="form-control">
<button class="btn btn-dark mt-3" type="submit"
name="member">ADD</button>
</form>
</div>

Surana College, PG Department Page 15


GYM MANAGEMENT SYSTEM 5th Semester MCA

Add payment:
Here in this module after adding a member to a gym he has to do a payment after 1 month in
online mode.

<?php
require('db.php');
Serrors = array()
if (isset($_REQUEST['payment'])) {
Spay_id= mysqli_real_escape_string(Sconn, S_REQUEST['id']).
Samount = mysqli_real_escape_string(Sconn, S_REQUEST ['amount']);
Sgym_id=mysqli_real_escape_string(Sconn, S_REQUEST ['gym_id']);
Suser_check_query= "SELECT FROM payment WHERE pay_id='Spay_id' LIMIT Sresult =
mysqli_query(Sconn, Suser_check_query); Suser=mysqli_fetch_assoc($result);
if (Suser) {
if (Suser['pay_id"]=Spay_id) {
array_push(Serrors, "<div class='alert alert-warning><b>ID already exists</b></di
}
if (count(Serrors)=0) {
Squery="INSERT INTO payment (pay_id,amount,gym_id)
VALUES('Spay_id','Samount','Sgym_id")",
Ssql-mysqli_query($conn, Squery);
if ($sql) {
Smsg="<div class 'alert alert-success><b>Payment area added successfully</b></div>";
}
Else
{
Smsg"<div class='alert alert-warning'><b>Payment area not added</b></div>",
}
?>
<div class="container">
<form class="mt-3 form-group" method="post" action=""> <h3>ADD PAYMENT AREA</h3>
<?php include('errors.php');
echo @Smsg,

Surana College, PG Department Page 16


GYM MANAGEMENT SYSTEM 5th Semester MCA

<label class="mt-3">PAYMENT AREA ID</label> <input type="text" name="id" class="form-


control">
<label class="mt-3">AMOUNT</label>
<input type="text" name="amount" class="form-control">
<label class="mt-3">GYM ID</label>
<input type="text" name="gym_id" class="form-control">
<button class="btn btn-dark mt-3" type="submit"
name="payment">ADD</button>
</form>
</div>

Surana College, PG Department Page 17


GYM MANAGEMENT SYSTEM 5th Semester MCA

Add trainer:
Here a new trainer enters to a gym he has to give his details to a gym admin, so that admin can
add a new trainer to a gym.

<?php
require('db.php');
Serrors = array():
if (isset($_REQUEST[trainer'])) {
Strainer_id=mysqli_real_escape_string(Sconn, S_REQUEST['id']): Sname=
mysqli_real_escape_string(Sconn, S_REQUEST['name']): Stime
mysqli_real_escape_string(Sconn, S REQUEST['time']): Smobileno=
mysqli_real_escape_string(Sconn, S_REQUEST['mobileno']);
Spay_id=mysqli_real_escape_string(Sconn, S_REQUEST['pay_id']); Suser_check_query=
"SELECT FROM trainer WHERE trainer_id='Strainer_id' LIMIT Sresult =
mysqli_query(Sconn, Suser_check_query); Suser mysqli_fetch_assoc($result);
if (Suser) {
if (Suser[trainer_id] =Strainer_id) { array_push(Serrors, "<div class='alert alert-warning><b>ID
already exists</b></div>")
}
}
if (count(Serrors) = 0) {
Squery="INSERT INTO trainer (trainer_id,name,time,mobileno,pay_id) VALUES('Strainer_id',
'Sname', 'Stime','Smobileno', 'Spay_id")";
Ssql-mysqli_query(Sconn, Squery);
if ($sql) {
Smsg="<div class='alert alert-success><b>Trainer added successfully</b></div>",
}
Else
{
Smsg="<div class='alert alert-warning'><b>Trainer not added</b></div>";
<div class="container">
<form class="mt-3 form-group" method="post" action="">
<h3>ADD TRAINER</h3> <?php include('errors.php');
echo @Smsg.

Surana College, PG Department Page 18


GYM MANAGEMENT SYSTEM 5th Semester MCA

<label class="mt-3">TRAINER ID</label>


<input type="text" name="id" class="form-control">
<label class="mt-3 TRAINER NAME</label>
<input type="text" name="name" class="form-control"> <label class="mt-3">TIME</label>
<input type="text" name="time" class="form-control">
<label class="mt-3">MOBILE NO</label>
<input type="text" name="mobileno" class="form-control">
<label class="mt-3">PAYMENT AREA ID</label>
<input type="text" name="pay_id" class="form-control">
<button class="btn btn-dark mt-3" type="submit" name="trainer">ADD</button>
</form>
</div>

Surana College, PG Department Page 19


GYM MANAGEMENT SYSTEM 5th Semester MCA

Update member:
Here a new details of member of a gym then admin can update his details which he has given for
updating details admin can update this.

<?php
require('db.php');
if (isset($_REQUEST['member'])) {
Smem_id = mysqli_real_escape_string(Sconn, S_REQUEST['id']);
Sname = mysqli_real_escape_string(Sconn, S_REQUEST['name']):
Sage = mysqli_real_escape_string(Sconn, S_REQUEST['age']);
Sdob= mysqli_real_escape_string(Sconn, $_REQUEST['dob']);
Spackage = mysqli_real_escape_string(Sconn, S_REQUEST['package']);
Smobileno= mysqli_real_escape_string(Sconn, S_REQUEST['mobileno']);
Supdate_query="update member set
mem_id='Smem_id',name='Sname',age='Sage',dob='Sdob'.package='Spackage,mobileno=" eno'
where mem_id="".$_GET['id']."";
Supdate_sql-mysqli_query(Sconn,Supdate_query);
Serr="<div class='alert alert-success><b>Member Area Details updated</b></div>";
Scon-mysqli_query(Sconn,"se…
<label class="mt-3">MEMBER ID</label>
<input type="text" name="id" value="<?php echo @Sres[mem_id"];?>"
class="form-control">
<label class="mt-3">MEMBER NAME</label>
<input type="text" name "name" value="<?php echo @Sres['name'],?>"
class="form-control">
<label class="mt-3">AGE</label>
<input type="text" name "age" value="<?php echo @Sres['age'];?>"
class="form-control">
<label class="mt-3DOB</label>
<input type="text" name="dob" value="<?php echo @Sres['dob'];?>"
class="form-control">
<label class="mt-3">PACKAGE</label>

Surana College, PG Department Page 20


GYM MANAGEMENT SYSTEM 5th Semester MCA

<input type="text" name "package" value="<?php echo @Sres['package']:?>"


class="form-control">
<label class="mt-3">MOBILE NO</label>
<input type="text" name "mobileno" value="<?php echo @Sres['mobileno].?>"
class="form-contr…

Surana College, PG Department Page 21


GYM MANAGEMENT SYSTEM 5th Semester MCA

Update trainer:
Here a new details of trainer of a gym then admin can update his details which he has given for
updating details admin can update this.

<? php
require('db.php');
if (isset(S_REQUEST['trainer'])) {
Strainer_id = mysqli_real_escape_string(Sconn, S_REQUEST['id']).
Sname = mysqli_real_escape_string(Sconn, S_REQUEST['name']):
Stime = mysqli_real_escape_string(Sconn, S_REQUEST['time']).
Smobileno = mysqli_real_escape_string(Sconn, $_REQUEST['mobileno']).
Supdate_query="update trainer set
trainer_id='Strainer_id,name-Sname, time-Stime',mobileno-Smobileno' where
trainer_id="S_GET['id'].""";
Supdate_sql-mysqli_query(Sconn,Supdate_query);
Serr="<div class='alert alert-success><b>Trainer Details updated</b></div>";
}
Scon mysqli_query(Sconn,"select from trainer where trainer_id=""$_GET[ie Sres-
mysqli_fetch_assoc(Scon):
?>
<div class="container">
<form class="mt-3 form-gr…
<input type="text" name="id" value="<?php echo @Srestrainer_id].?>
class="form-control">
<label class="mt-3">TRAINER NAME</label>
<input type="text" name="name" value="<?php echo @Sres['name'],?>
class="form-control">
<label class="mt-3">TIME</label>
<input type="text" name="time" value="<?php echo @Sres['time'];?>"
class="form-control">
<label class="mt-3">MOBILE NO</label> <input type="text" name="mobileno" value="<?php
echo @Sres['mobileno].?>
class="form-control">

Surana College, PG Department Page 22


GYM MANAGEMENT SYSTEM 5th Semester MCA

<button class="btn btn-dark mt-3" type="submit"


name="trainer">UPDATE</button>
/form>
</div>

Surana College, PG Department Page 23


GYM MANAGEMENT SYSTEM 5th Semester MCA

Delete member:
Here admin can handle overall activities such as member attendance, trainer attendance and
member left the gym admin can delete the member id and his details.

<?php
require('db.php');
Sinf-S_GET['id'];
Ssql_query="DELETE FROM member WHERE mem_id-Sinf";
Sdelete mysqli_query(Sconn,Ssql_query);
if ($delete) {
header("location:home.php?info-manage_member");
} else {
echo "error".mysqli_error(Sconn);
}
?>

Surana College, PG Department Page 24


GYM MANAGEMENT SYSTEM 5th Semester MCA

Delete trainer:
Admin can view the package details of an individual trainer. Admin can also view the member's
attendance taken by the trainer. Admin can delete the trainer if he is not working in gym.

<?php
require('db.php');
Sinf $_GET['id'];
Ssql_mem="DELETE FROM member WHERE trainer_id-(select trainer_id from trair
trainer_id-Sinf)";
Ssql_query_mem-mysqli_query ($conn,Ssql_mem);
if (Ssql_query_mem) {
Ssql_query="DELETE FROM trainer WHERE trainer_id='Sinf";
Sdelete mysqli_query(Sconn,Ssql_query);
if ($delete) {
header("location:home.php?info-manage_trainer");
}else{
echo "error".mysqli_error ($conn);
}
}else{
echo "Not deleted";
}

Surana College, PG Department Page 25


GYM MANAGEMENT SYSTEM 5th Semester MCA

5. DETAILED DESIGN
5.1. ER-DIAGRAM
USER_ID USERNAME PASSWORD

PAY_ID
LOGIN
GYM_NAME
MEM_ID TRNR_ID

GYM_ID TYPE

NA M E
MEMBER
Login

GYM
Manage Manage
gym ADDRESS

Training ADMIN

Manage Manage
trainer payment
P_ID
TRAINER

TRAINR_ID Salary Payment

PAY_ID M O B _ NO
GYM_ID

NAM E

Pay

Surana College, PG Department Page 26


GYM MANAGEMENT SYSTEM 5th Semester MCA

5.2 DATABASE TABLES

Gym:
Field Type

Gym_id int(11)

Gym_name varchar(20)

Address varchar(20)

Type Varchar(20)

Gym member:
Field Type
Mem_id varchar(30)
Name varchar(30)
Mobile Number int(11)
Dob varchar(11)
Package varchar(20)
Age int(100)
Pay_id varchar(20)
Trainer_id Varchar(255)
Login:
Field Type

Id int(30)

Uname varchar(30)

Pwd Varchar(30)

Surana College, PG Department Page 27


GYM MANAGEMENT SYSTEM 5th Semester MCA

Payment:
Field Type

Pay_id varchar(11)

Amount int(11)

gym_id varchar(255)

Trainer:
Field Type

trainer_id varchar(11)

Name varchar(100)

Time time(120)

MobileNo int(11)

Pay_id Longtext

Surana College, PG Department Page 28


GYM MANAGEMENT SYSTEM 5th Semester MCA

5.3 DFD DIAGRAM


Context Level - DFD:

Package
Management

GYM Trainer
Management Management

Gym
Management
System

Facility System user


Management Management

Login Management

Surana College, PG Department Page 29


GYM MANAGEMENT SYSTEM 5th Semester MCA

I Level – DFD:

Generate gym
Gym management report

Generate gym
Gym branch branch report
management

Generate gym shift


Gym shift Gym report
management Management

Package Generate package


management report

Login management Check user login


details

System user Generate system


management user report

Surana College, PG Department Page 30


GYM MANAGEMENT SYSTEM 5th Semester MCA

II Level – DFD:

Manage gym details


Admin
Manage attendance
details
Login Check Manage gym shift
to
roles of details
system
access
Manage package details

Manage payment details

Check Manage trainer details


Manage
credentials modules
Manage report

Manage user permission

Manage roles of user

Manage system admin

Surana College, PG Department Page 31


GYM MANAGEMENT SYSTEM 5th Semester MCA

7. SCREEN SHOTS

LOGIN:

Surana College, PG Department Page 32


GYM MANAGEMENT SYSTEM 5th Semester MCA

GYM MANAGEMENT SYSTEM:

Surana College, PG Department Page 33


GYM MANAGEMENT SYSTEM 5th Semester MCA

ADD MEMBER:

Surana College, PG Department Page 34


GYM MANAGEMENT SYSTEM 5th Semester MCA

ADD TRAINER:

Surana College, PG Department Page 35


GYM MANAGEMENT SYSTEM 5th Semester MCA

ADD PAYMENT AREA:

Surana College, PG Department Page 36


GYM MANAGEMENT SYSTEM 5th Semester MCA

8. TESTING

System testing is the stage before system implementation where the system is made error
free and all the needed modifications are made. The system was tested with test data and
necessary corrections to the system were carried out. All the reports were checked by the user
and approved. The system was very user friendly with online help to assist the user wherever
necessary.

Test Plan:

A test plan is a general document for the entire project, which defines the scope,
approach to be taken, and schedule of testing, as well as identifying the test item for the entire
testing process, and the personal responsible for the different activities of testing. This document
describes the plan for testing, the knowledge management tool.

Major testing activities are:

 Test units

 Features to be tested

 Approach for testing

 Test deliverables

 Schedule

 Personal allocation

Test units:

Test Case specification is major activity in the testing process. In this project, I have
performed two levels of testing.

 Unit testing

 System testing

Surana College, PG Department Page 37


GYM MANAGEMENT SYSTEM 5th Semester MCA

The basic units in Unit testing are:

 Validating the user request

 Validating the input given by the user

 Exception handling

The basic units in System testing are:

 Integration of all programs is correct or not

 Checking whether the entire system after integrating is working as


expected.

 The system is tested as whole after the unit testing.

Test deliverables:
The following documents are required besides the test plan

 Unit test report for each unit

 Test case specification for system testing

 The report for system testing

 Error report

The test case specification for system testing has to be submitted for review before the
system testing commences.

Surana College, PG Department Page 38


GYM MANAGEMENT SYSTEM 5th Semester MCA

9. CONCLUSION
This project has given me a sample opportunity to design, code, test and implements an
application. This has helped in putting into practice of various Software Engineering principles
and Database Management concepts like maintaining integrity and consistency of data. Further,
this has helped me to learn more about MySQL, XAMPP server, HTML, and PHP.

I thank my guide for his invaluable contribution in guiding me through out the project. I
also thank my parents and friends who have supported and motivated me to complete this project
successfully.

9.1 Advantages:

9.1.1 Extensibility:

The other features, which the Blood bank services provide, can also be incorporated into
this Blood Bank. The Encryption standards can also be used to make the transactions more
secure. The Socket Secure Layer protocol can also used in implementing the system, which gives
highest security in the Internet.

9.2 Future Enhancement:

As there was a little number of contact person’s information given, some people may face
difficulty in getting blood fast. So I like to gather more information regarding the contact
persons in other cities as well as villages and will provide much more services for the people and
help everyone with humanity.

Limitation:
 In this project the searching can be done for donors for majority of cities but not for every
city.

 In this project the contact person’s details are given for the limited cities only.

Surana College, PG Department Page 39


GYM MANAGEMENT SYSTEM 5th Semester MCA

REFERENCES

 "A study on gym Management system"-A. ClemenTeena, K. Shankar and S. Kannan.

 "Introduction to DBMS" - Raghu Ramakrishna and Johannes Gehrke.

 "The Joy of PHP Programming: A Beginner's Guide" - Alan Forbes.

 "Head First PHP and MySQL"- Lynn Beighley & Michael Morrison.

WEBSITES

 https://sites.google.com/site/project-report/gym-management-system-project-report
 https://www.coursehero.com/file/gym-management-documentation
 https://projectworlds.in/free-projects/php-projects/gym-management-system-project-in-php
 https://www.freeprojectz.com/paid-projects/gym-management-system-0
 https://code-projects.org/gym-management-system-c-programming-source-code

Surana College, PG Department Page 40

You might also like