Report1 Combined
Report1 Combined
A
Mini project Report
on
“SPORTS CLUB MANAGEMENT SYSTEM”
SUBMITTED IN PARTIAL FULFILLMENT FOR 5TH SEMESTER
BACHELOR OF ENGINEERING
IN
COMPUTER SCIENCE AND ENGINEERING
SUBMITTED BY
CERTIFICATE
Certified that the DBMS Mini Project entitled “SPORTS CLUB MANAGEMENT SYSTEM”
carried out by Shama S Kolhar, Shreya Gupta bearing USN 1JB20CS109 and 1JB20CS116 are bonafide
students of SJB Institute of Technology in partial fulfilment for 5th Semester of BACHELOR OF
ENGINEERING in COMPUTER SCIENCE AND ENGINEERING of the Visvesvaraya Technological
University, Belagavi during the academic year 2022-23. It is certified that all corrections/suggestions
indicated for Internal Assessment have been incorporated in the Report deposited in the Departmental library.
The mini project report has been approved as it satisfies the academic requirements in respect of mini project
prescribed for the said Degree.
Internal Examiner
External Examiner
We would like to express our profound grateful to His Divine Soul Jagadguru Padmabhushan Sri Sri Sri Dr.
Balagangadharanatha Mahaswamiji and His Holiness Jagadguru Sri Sri Sri Dr. Nirmalanandanatha
Mahaswamiji for providing us an opportunity to complete our academics in this esteemed institution.
We would also like to express our profound thanks to Revered Sri Sri Dr. Prakashnath Swamiji, Managing
Director, SJB Institute of Technology, for his continuous support in providing amenities to carry out this Mini
Project in this admired institution.
We express our gratitude to Dr. K. V. Mahendra Prashanth, Principal, SJB Institute of Technology, for providing
us an excellent facility and academic ambience; which have helped us in satisfactory completion of Mini Project
work.
We extend our sincere thanks to Dr. Krishan A N, Head of the Department, Computer Science and Engineering
for providing us an invaluable support throughout the period of our Mini project work.
We wish to express our heartfelt gratitude to our guide Prakruthi M K, for her valuable guidance, suggestions
and cheerful encouragement during the entire period of our Mini Project work.
Finally, we take this opportunity to extend our earnest gratitude and respect to our parents, Teaching & Non
teaching staffs of the department, the library staff and all our friends, who have directly or indirectly supported
us during the period of our Mini Project work.
Regards,
The project ‘THE SPORTS CLUB MANAGEMENT SYSTEM’ creates a software that store and manages all
the data needed to describe the personal data of the members and their framework within an organization. It
includes definition of various levels of hierarchy in an organization, the price structure pertaining to every
element in this hierarchy, the description of every member functioning in the club and the overall sports club
database which integrates all the elements mentioned above.
It has a database administration that has access to the entire database, in regards with
viewing and update of information. The exclusive right is implemented using authorized access. Also viewing
all data and editing of personal data can be done by admin any admin, this also using authorized access.
We will develop this software using HTML, CSS. The design tool used in this project is PHP.
The preferred IDE is Microsoft visual studio code. The server used to run the project is XAMPP. The database
used in the backend is MySQL.
II
TABLE OF CONTENTS
Acknowledgement I
Abstract II
Table of contents III
List of figures V
List of tables VI
Chapter 1
Introduction
1.1 Introduction………………………………………………………………………….1
1.2 Objectives……………………………………………………………………………1
1.3 History of database system…………………………………………………………..1
Chapter 2
System requirements
2.1 Introduction…………………………………………………………………………3
2.2 Overview of the components used
2.2.1 PHP……………………………………………………………………..4
2.2.2 MYSQL…………………………………………………………………4
2.2.3 XAMPP…………………………………………………………………5
2.3 Software design……………………………………………………………………..5
2.4 Hardware design…………………………………………………………………….6
Chapter 3
System design
3.1 Introduction………………………………………………………………………..7
3.2 ER Diagram………………………………………………………………………..8
3.3 Schema Diagram…………………………………………………………………...9
3.4 Data flow model……………………………………………………………………9
III
Chapter 4
Implementation
4.1 Code Snippets
4.1.1 Database connection………………………………………………….11
4.1.2 Login page…………………………………………………………….12
4.1.3 Add members………………………………………………………….14
4.1.4 Payment……………………………………………………………….16
4.2 SQL Procedures and Triggers
4.2.1 Triggers……………………………………………………………….19
4.2.2 Stored Procedure……………………………………………………...20
Chapter 5
Results and discussions
5.1 Snapshots………………………………………………………………………21
5.2 Tables…………………………………………………………………………..25
Conclusion……………………………………………………………………………………29
Reference………………………………………………………………………………………30
IV
LIST OF FIGURES
V
LIST OF TABLES
VI
Sports Club Management System
Chapter 1
INTRODUCTION
1.1 Introduction
The Sports Club Management System project deals with registering new members, plans,
payments, routine and managing the members for the club. The project has complete access for the
curd operations that are to create, read, update and delete the database entries. At first you need to
login as this system is totally controlled by the admin/owner and then register the members for the
club and check their health status and view the total income per month. Now you can assign different
routine to different members and also check the health status which can be viewed and edited too and
finally check the payments according to the plan they have chosen. It has a database administration
that has access to the entire database, in regards with viewing, updating and deleting the information.
1.2 Objectives
The Sports Club Management software is very user friendly and appealing. The Human
objective of the system is to maintain and retrieve information about the members and the sports they
will play on which day of the week and at what time in the sports club. The system is fairly simple in
design and implementation.
The main objective of this system can be summarized as follows:
Design of a GUI portal for managing the Sports Club for the admin.
Insertion of member’s data, plans and managing of payment and health status.
Monthly Payment for monthly plan and yearly payment of yearly plan.
Computerized manipulation and management of member data and id.
The relational model employs sets of ledger-style tables, each used for a
different type of entity. Only in the mid-1980s did computing hardware become powerful enough to
allow the wide deployment of relational systems (DBMSs plus applications). By the early 1990s,
however, relational systems dominated in all large-scale data processing applications, and as of 2015
they remain dominant: IBM DB2, Oracle, MySQL, and Microsoft SQL Server are the top DBMS. The
dominant database language, standardized SQL for the relational model, has influenced database
languages for other data models.
CHAPTER 2
SOFTWARE REQUIREMENTS
2.1 Introduction
A high-level requirements specification is required. The purpose of the requirements
analysis is to identify requirements for the proposed system. The emphasis is on the discovery of user
requirements catalogue. Each requirement is recorded in the requirements catalogue on requirements
catalogue entry form. A copy of the form is in the appendix section of the standards manual. The form
should be completed as follows:
2.2 PHP
PHP is a servlet-side scripting language designed primarily for web development but also
used as a general-purpose programming language. Originally created by Rasmus Lerdorf in I994, the
PHP reference implementation is now produced by The PHP Development Team. PHP originally
stood for Personal Home Page, but it now stands for the recursive acronym PHP: Hypertext Pre-
processor. PHP code may be embedded into HTML or HTML5 markup, 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. PHP code may also be executed with a
command-line interface (CLI) and can be used to implement standalone graphical applications.
The standard PHP interpreter, powered by the Zend Engine, is free
software released under the PHP License. PHP has been widely ported and can be deployed on most
web servers on almost every operating system and platform, free of charge. The PHP language evolved
without a written formal specification or standard until 2014, leaving the canonical PHP interpreter as
a de facto standard. Since 2014 work has gone on to create a formal PHP specification. PHP is a
scripting language that helps people make web pages more interactive by allowing them to do more
things. A website programmed with PHP can have pages that are password protected. A website with
no programming cannot do this without other complex things. Standard PHP file extensions are: php,
php3 or, HTML, but a web server can be set up to use any extension
2.3 MySQL
Microsoft's Visual Studio and the JDBC driver for Java. In addition, an ODBC interface called
MySQL Connector/ODBC allows additional programming languages that support the ODBC interface
to communicate with a MySQL database, such as ASP or ColdFus
2.4 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, MariaDB database, and interpreters
for scripts 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's ease of deployment means a XAMPP stack can be installed quickly and
simply on an operating system by a developer, with the advantage a number of common add-in
applications such as Wordpress and Joomla! can also be installed with similar ease using Bitnami.
CHAPTER 3
SYSTEM DESIGN
3.1 INTRODUCTION
Systems design is the process or art of defining the architecture, components, modules,
interfaces, and data for a system to satisfy specified requirements. One could see it as the application
of systems theory to product development. This Project is implemented using XAMPP, which is
proven to be a very efficient tool in the field of PHP programming. It is done under Windows11
platform. . PHP programming language is used to implement the entire code. Interface to the program
is provided with the help of MySQL.
The Sports Club management project deals the adding new Sports Club plans and managing
the members for the Sports Club. The project has complete access for the crud operations that are to
create, read, update and delete the database entries . At first you need to login as this system is totally
controlled by the admin/owner and then register the members for the club and check their health status
and view the total income per month . Now you can assign different routine to different members and
also check the health status which can be viewed and edited too and finally check the payments
according to the plan they have chosen. It has a database administration that has access to the entire
database, in regards with viewing and deletion of information.
Existing System:
Here the existing system is nothing but a manual system in which the admin has to fill the
member’s Sports Club details in an excel sheet and send it to their supervisor then the supervisor has to
merge all the member information details and arrange them in to a single sheet. Maintaining a clean
record of all the members is a tedious job in this process.
Drawback:
Paperback records are hard to maintain.
Searching for a member’s information can be gruesome task.
Doesn’t provide Security.
Difficulty in updating the records.
More manual hours is needed to maintain the records.
Updating the member on deadline for payment is difficult.
One way to overcome all these difficulties is so store all the information in database.
The computerization helps mitigate a lot of drawback and streamlines the process.
Proposed System:
Performance Management System is to replace the existing manual system with a software
solution. It allows all the employees in different sections of the club to work together and manage a
single record. Different areas of the Sports Club can be managed in different tabs by different people.
Other Computerized System advantages:
Faster processing
Centralized database helps in avoiding conflicts.
Easy to use GUI that does not re
3.2 ER Diagram
An entity–relationship model (ER model) describes inter-related things of interest in a
specific domain of knowledge. An ER model is composed of entity types (which classify the things of
interest) and specifies relationships that can exist between instances of those entity types. In software
engineering an ER model is commonly formed to represent things that a business needs to remember
in order to perform business processes. Consequently, the ER model becomes an abstract data model
that defines a data or information structure that can be implemented in a database, typically a relational
database.
Chapter 4
Implementation
4.1 Code Snippets
4.1.1 Database Connection: This is a code snippet to show how PHP is used to connect to
the local MySQL database using the localhost server.
<?php
$host = "localhost";
$username = "root";
$password = "";
$db_name = "sports_club_db";
$con = mysqli_connect($host, $username, $password, $db_name);
if (!$con) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
?>
<?php
function page_protect()
{
session_start();
global $db;
if (isset($_SESSION['HTTP_USER_AGENT'])) {
if ($_SESSION['HTTP_USER_AGENT'] != md5($_SERVER['HTTP_USER_AGENT'])) {
session_destroy();
echo "<meta http-equiv='refresh' content='0; url=../login/'>";
exit();
}
}
if (!isset($_SESSION['user_data']) && !isset($_SESSION['logged']) &&
!isset($_SESSION['auth_level'])) {
session_destroy();
$memID = $_POST['m_id'];
$uname = $_POST['u_name'];
$stname = $_POST['street_name'];
$city = $_POST['city'];
$zipcode = $_POST['zipcode'];
$state = $_POST['state'];
$gender = $_POST['gender'];
$dob = $_POST['dob'];
$phn = $_POST['mobile'];
$email = $_POST['email'];
$jdate = $_POST['jdate'];
$plan = $_POST['plan'];
$query = "insert into
users(
userid,
username,
gender,
mobile,
email,
dob,
joining_date
)
values(
'$memID',
'$uname',
'$gender',
'$phn',
'$email',
'$dob',
'$jdate'
)";
if (mysqli_query($con, $query) == 1) {
$query1 = "select * from plan where pid='$plan'";
$result = mysqli_query($con, $query1);
if ($result) {
$value = mysqli_fetch_row($result);
date_default_timezone_set("Asia/Calcutta");
$d = strtotime("+" . $value[3] . " Months");
$cdate = date("Y-m-d");
$expiredate = date("Y-m-d", $d);
$query2 = "insert into enrolls_to(pid,uid,paid_date,expire,renewal)
values('$plan','$memID','$cdate','$expiredate','yes')";
if (mysqli_query($con, $query2) == 1)
$query4 = "insert into health_status(uid) values('$memID')";
if (mysqli_query($con, $query4) == 1) {
} else {
echo "<head><script>alert('Member Added Failed');</script></head></html>";
echo "error: " . mysqli_error($con);
$query3 = "DELETE FROM users WHERE userid='$memID'";
mysqli_query($con, $query3);
}
} else {
echo "<head><script>alert('Member Added Failed');</script></head></html>";
echo "error: " . mysqli_error($con);
$query3 = "DELETE FROM users WHERE userid='$memID'";
mysqli_query($con, $query3);
}
} else {
echo "<head><script>alert('Member Added Failed');</script></head></html>";
echo "error: " . mysqli_error($con);
}
?>
</div>
<div class="main-content">
<div class="row">
<!-- Profile Info and Notifications -->
<div class="col-md-6 col-sm-8 clearfix">
</div>
<!-- Raw Links -->
<div class="col-md-6 col-sm-4 clearfix hidden-xs">
<ul class="list-inline links-list pull-right">
<li>Welcome <?php echo $_SESSION['full_name']; ?>
</li>
<li>
<a href="logout.php">
Log Out <i class="entypo-logout right"></i>
</a>
</li>
</ul>
</div>
</div>
<h2>Payments</h2>
<hr />
<table class="table table-bordered datatable" id="table-1" border=1 (color=white)>
<thead>
<tr>
<th>Sl.No</th>
<th>Membership Expiry</th>
<th>Name</th>
<th>Member ID</th>
<th>Phone</th>
<th>E-Mail</th>
<th>Gender</th>
<th>Action</th>
</tr>
</thead>
Description: This trigger is used to display the action performed in the users table i.e.
insertion, deletion or update and reflects these changes in log users tables
Chapter 5
RESULTS AND DISCUSSIONS
5.1 Snapshots
The below figure refers to the initial bootup page of the application
The below figure refers to Dashboard page if the login username and password is correct and you get
logged in the system
The below figure refers to the Health Status entry for the member
The below figure refers to the different sports plans available and can be added and edited
5.2 Tables
Table 5.2.1 Address of sports club member
CONCLUSION
The maintenance of Sports Club will be well planned and organized. The data will be stored efficiency
with optimal disk space consumption in data stores which will help in retrieval of information as well
as its storage under resource constraints.
The level of accuracy in the proposed system will be higher. All operations would
conform to integrity constraints and correctness, and it will be ensured that whatever information is
received at or sent from the center is accurate.
The reliability of the proposed system will be high due to the above-mentioned reasons.
This comes from the fact that only the data which conforms accuracy clause would be allowed to
commit back to the disk. Other properties like transaction management and rollback during system or
power failure etc. get automatically taken care of by the SQL systems, which is undoubtedly an
excellent choice of the DBMS system. Properties of atomicity, consistency, isolation and data security
are intrinsically maintained
REFERENCES
Randy Connolly, Ricardo Hoar, "Fundamentals of Web Development”, 1stEdition, Pearson Education
India.
https://www.tutorialspoint.com
www.youtube.com
www.geeksforgeeks.com