PHP MICROPROJECT REPORT
PHP MICROPROJECT REPORT
MICROPROJECT REPORT
ON
“Gym Management System”
Submitted by –
Guided by –
Prof. S. N. Dudhawade
Has satisfactorily carried out and completed the project report entitled
“Gym Management System”
It is submitted in the partial fulfillment of the prescribed syllabus of subject “Web
Based Application Development Using PHP” [22619] a micro project for First
Year Diploma in Computer Engineering for the academic year 2024-2025.
Prof. R. D. Palhade
Principal
ACKNOWLEDGEMENT
SR.NO TITLE
1. Introduction
2. Need of Gym Management
3. Program Code/Output
4. Conclusion
5. Reference
INTRODUCTION
This system allows gym staff to focus more on providing excellent service to members
by reducing the manual work involved in handling daily operations. Additionally, it
provides gym members with an easy way to manage their memberships, book classes,
and track their fitness progress.
.
Need of Gym Management
The gym management system described above is essential for several reasons:
5. Data-Driven Decision Making: The system generates reports and analytics that
provide valuable insights into membership trends, revenue streams, and operational
performance, empowering gym owners to make informed decisions to drive business
growth.
6. Personalized Training: By allowing members to select preferred trainers during
registration and providing trainers with access to member profiles, the system enables
personalized training programs tailored to individual needs and goals.
7. Security and Compliance: The system ensures the security of member data and
compliance with privacy regulations through robust security measures such as user
authentication and data encryption.
8. Scalability and Flexibility : As the gym grows and evolves, the system can be easily
scaled up to accommodate increasing membership numbers and expanded services,
while remaining flexible enough to adapt to changing business requirements.
Overall, the gym management system is indispensable for modern fitness facilities
seeking to streamline operations, enhance member satisfaction, and drive business
success in a competitive market.
Program Code
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
</head>
<style type="text/css"> #inputbtn:hover{cursor:pointer;}
</style>
<body style="background:url('images/4.jpg'); background-size: cover;">
<div class="container-fluid" style="margin-top:60px;margin-bottom:60px;color:#34495E;">
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-4">
<div class="card">
<img src="images/cardback.jpg" class="card-img-top">
<div class="card-body">
<center>
<h5>Admin Login</h5><br>
<form class="form-group" method="POST" action="admin-panel.php">
<div class="row">
<div class="col-md-4"><label>Username: </label></div>
<div class="col-md-8"><input type="text" name="username" class="form-control"
placeholder="enter username" required/></div><br><br>
<div class="col-md-4"><label>Password: </label></div>
<div class="col-md-8"><input type="password" class="form-control" name="password"
placeholder="enter password" required/></div><br><br><br>
</div>
<center><input type="submit" id="inputbtn" name="login_submit" value="Login"
class="btn btn-primary"></center>
</form>
</center>
</div>
</div>
</div>
<div class="col-md-7"></div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-
KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN
" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"
integrity="sha384-
b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</body>
</html>
Admin-panel.php:
<!DOCTYPE html>
<?php
$hostname = "localhost";
$username = "root";
$password = "";
$databaseName = "loginsystem";
// for method 1
</select>
<input type="submit" class="btn btn-primary" name="pat_submit" value="Register"> <a
href="func.php" class="btn btn-light"></a>
</form>
</div>
</div>
</div>
<div class="col-md-1"></div>
</div>
<header>
<nav>
<div class="main-wrapper">
<div class="nav-login">
<?php
if (isset($_SESSION['u_id'])) {
echo '<form action="includes/index.php" method="POST">
<button type="submit" name="submit">logout</button>
</form>';
} else{
echo '<form action="includes/index.php"
method="POST">
</form>
<a href="index.php" class="btn btn-light" style="background-
color:#3498DB;color:FFFFFF">Logout</a>';
}?>
</div>
</div>
</nav>
</header>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</body>
</html>
Func.php:
<?php
$con=mysqli_connect("localhost","root","","loginsystem");
if(isset($_POST['login_submit'])){
$username=$_POST['username'];
$password=$_POST['password'];
$query="select * from logintb where username='$username' and password='$password'";
$result=mysqli_query($con,$query);
if(mysqli_num_rows($result)==1)
{
header("Location:admin-panel.php");
}
else
{
echo "<script>alert('error login')</script>";
echo "<script>window.open('admin-panel.php','_self')</script>";
}
}
if(isset($_POST['pat_submit']))
{
$fname=$_POST['fname'];
$lname=$_POST['lname'];
$email=$_POST['email'];
$contact=$_POST['contact'];
$docapp=$_POST['docapp'];
$query="insert into
doctorapp(fname,lname,email,contact,docapp)values('$fname','$lname','$email','$contact','$docapp')";
$result=mysqli_query($con,$query);
if($result)
{
echo "<script>alert('Member added.')</script>";
echo "<script>window.open('admin-panel.php','_self')</script>";
}
}
if(isset($_POST['tra_submit']))
{
$Trainer_id=$_POST['Trainer_id'];
$Name=$_POST['Name'];
$phone=$_POST['phone'];
$query="insert into Trainer(Trainer_id,Name,phone)values('$Trainer_id','$Name','$phone')";
$result=mysqli_query($con,$query);
if($result)
{
echo "<script>alert('Trainer added.')</script>";
echo "<script>window.open('admin-panel.php','_self')</script>";
}
}
if(isset($_POST['pay_submit']))
{
$Payment_id=$_POST['Payment_id'];
$Amount=$_POST['Amount'];
$customer_id=$_POST['customer_id'];
$payment_type=$_POST['payment_type'];
$customer_name=$_POST['customer_name'];
$query="insert into
Payment(Payment_id,Amount,customer_id,payment_type,customer_name)values('$Payment_id','$Amount
','$customer_id','$payment_type','$customer_name')";
$result=mysqli_query($con,$query);
if($result)
{
echo "<script>alert('Payment sucessfull.')</script>";
echo "<script>window.open('admin-panel.php','_self')</script>";
}
}
function
get_patient_details(){ global
$con;
$query="select * from doctorapp";
$result=mysqli_query($con,$query);
while ($row=mysqli_fetch_array($result)){
$fname=$row ['fname'];
$lname=$row['lname'];
$email=$row['email'];
$contact=$row['contact'];
$docapp=$row['docapp'];
echo "<tr>
<td>$fname</td>
<td>$lname</td>
<td>$email</td>
<td>$contact</td>
<td>$docapp</td>
</tr>";
}
}
function
get_package(){ global
$con;
$query="select * from Package";
$result=mysqli_query($con,$query);
while($row=mysqli_fetch_array($result)){
$Package_id=$row ['Package_id'];
$Package_name=$row['Package_name'];
$Amount=$row['Amount'];
echo"<tr>
<td>$Package_id</td>
<td>$Package_name</td>
<td>$Amount</td>
</tr>";
}
}
function
get_trainer(){ global
$con;
$query="select * from Trainer";
$result=mysqli_query($con,$query);
while($row=mysqli_fetch_array($result)){
$Trainer_id=$row ['Trainer_id'];
$Name=$row['Name'];
$phone=$row['phone'];
echo"<tr>
<td>$Trainer_id</td>
<td>$Name</td>
<td>$phone</td>
</tr>";
}
}
function
get_payment(){ global
$con;
$query="select * from Payment";
$result=mysqli_query($con,$query);
while($row=mysqli_fetch_array($result)){
$Payment_id=$row ['Payment_id'];
$Amount=$row['Amount'];
$payment_type=$row['payment_type'];
$customer_id=$row['customer_id'];
/*$customer_name=$row['customer_name'];*/
echo"<tr>
<td>$Payment_id</td>
<td>$Amount</td>
<td>$payment_type</td>
<td>$customer_id</td>
</tr>";
}
}
?>
Pacakge.php:
<!DOCTYPE html>
<?php include("func.php");?>
<html>
<head>
<title>Members details</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
</head>
<body>
<div class="jumbotron" style="background: url('images/2.jpg') no-repeat;background-size:
cover;height: 300px;"></div>
<div class="container">
<div class="card">
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="row">
<div class="col-md-1">
<a href="admin-panel.php" class="btn btn-light ">Go Back</a>
</div>
<div class="col-md-3"><h3>Pcakage Details</h3></div>
<div class="col-md-8">
<form class="form-group" action="patient_search.php" method="post">
<div class="row">
</form></div></div></div>
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="card-body">
<table class="table table-hover">
<thead>
<tr>
<th>Package ID </th>
<th>Package Name</th>
<th>Amounts</th>
</tr>";
}
}
function get_trainer(){ global
$con;
$query="select * from Trainer";
$result=mysqli_query($con,$query); while($row=mysqli_fetch_array($result)){
$Trainer_id=$row ['Trainer_id'];
$Name=$row['Name'];
$phone=$row['phone']; echo"<tr>
<td>$Trainer_id</td>
<td>$Name</td>
<td>$phone</td>
</tr>";
}
}
function get_payment(){ global
$con;
$query="select * from Payment";
$result=mysqli_query($con,$query); while($row=mysqli_fetch_array($result)){
$Payment_id=$row ['Payment_id'];
$Amount=$row['Amount'];
$payment_type=$row['payment_type'];
$customer_id=$row['customer_id'];
/*$customer_name=$row['customer_name'];*/
echo"<tr>
<td>$Payment_id</td>
<td>$Amount</td>
<td>$payment_type</td>
<td>$customer_id</td>
</tr>";
}
}
?>
Pacakge.php:
<!DOCTYPE html>
<?php include("func.php");?>
<html>
<head>
<title>Members details</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0- beta/css/bootstrap.min.css"
integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
</head>
<body>
<div class="jumbotron" style="background: url('images/2.jpg') no-repeat;background-size: cover;height:
300px;"></div>
<div class="container">
<div class="card">
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="row">
<div class="col-md-1">
<a href="admin-panel.php" class="btn btn-light ">Go Back</a>
</div>
<div class="col-md-3"><h3>Pcakage Details</h3></div>
<div class="col-md-8">
<form class="form-group" action="patient_search.php" method="post">
<div class="row">
</form></div></div></div>
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="card-body">
<table class="table table-hover">
<thead>
<tr>
<th>Package ID </th>
<th>Package Name</th>
<th>Amounts</th>
</tr>
</thead>
<tbody>
<?php get_package(); ?>
</tbody>
</table>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</div>
</body>
</html>
Payment.php:
<!DOCTYPE html>
<?php include("func.php");?>
<html>
<head>
<title>Members details</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0- beta/css/bootstrap.min.css"
integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
</head>
<body>
<div class="jumbotron" style="background: url('images/2.jpg') no-repeat;background-size: cover;height:
300px;"></div>
<div class="container">
<div class="card">
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="row">
<div class="col-md-1">
<a href="admin-panel.php" class="btn btn-light ">Go Back</a>
</div>
<div class="col-md-3"><h3>Payment Details</h3></div>
<div class="col-md-8">
<form class="form-group" action="patient_search.php" method="post">
<div class="row">
</form></div></div></div>
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="card-body">
<table class="table table-hover">
<thead>
<tr>
<th>Payment ID </th>
<th>Amount</th>
<th>Payment Type</th>
<th>Customer ID</th>
<!-- <th>Customer Name</th>-->
</tr>
</thead>
<tbody>
<?php get_payment(); ?>
</tbody>
</table>
<div class="card-body" style="background-color:#3498DB;color:FFFFFF;">
<h3>Make new Payment</h3>
</div>
<div class="card-body"></div>
<form class="form-group" action="func.php" method="post">
<label> Customer Name</label>
<input type="text" name="customer_name" class="form-control">
<label>Payment ID</label>
<input type="text" name="Payment_id" class="form-control"><br>
<label>Amount</label>
<input type="text" name="Amount" class="form-control"><br>
<label>Customer ID</label>
<input type="text" name="customer_id" class="form-control"><br>
<!-- <label>Customer Name</label>
<input type="text" name="customer_name" class="form-control"><br>-->
<label>Payment Type</label>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</div>
</body>
</html>
Signup.php:
<?php
include_once 'header.php';
?>
<section class="main-container">
<div class="main-wrapper">
<h2>signup</h2>
<form class="signup-form" action="includes/signup.inc.php" method="POST">
<input type="text" name="first" placeholder="firstname">
<input type="text" name="last" placeholder="lastname">
<input type="text" name="email" placeholder="e-mail">
<input type="text" name="uid" placeholder="username">
input, select {
vertical-align:middle;
/*my code*/
.main-
wrapper{ margin: 0 auto; width: 1000px;
}
a{
text-decoration: none;
}
body{
background-color: #ccc;
}
header nav{
width: 100%; height: 60px;
background-color: #fff;
body {
line-height:1;
}
}
header nav ul
{ float:left;
article,aside,details,figcaption,figure, footer,header,hgroup,menu,nav,section {
display:block;
}
nav ul {
list-style:none;
}
blockquote, q
{ quotes:none;
}
}
header nav ul li a
{ font-family: arial; font-size: 20 px;
color: #111;
line-height: 63px;
}
header .nav-login
{ float: right;
}
vertical-align:baseline; background:transparent;
{ margin:
0;
padding:0;
font-size:100%;
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</div>
</body>
</html>
Payment.php:
<!DOCTYPE html>
<?php include("func.php");?>
<html>
<head>
<title>Members details</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
</head>
<body>
<div class="jumbotron" style="background: url('images/2.jpg') no-repeat;background-size:
cover;height: 300px;"></div>
<div class="container">
<div class="card">
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="row">
<div class="col-md-1">
<a href="admin-panel.php" class="btn btn-light ">Go Back</a>
</div>
<div class="col-md-3"><h3>Payment Details</h3></div>
<div class="col-md-8">
<form class="form-group" action="patient_search.php" method="post">
<div class="row">
</form></div></div></div>
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="card-body">
<table class="table table-hover">
<thead>
<tr>
<th>Payment ID </th>
<th>Amount</th>
<th>Payment Type</th>
<th>Customer ID</th>
<!-- <th>Customer Name</th>-->
</tr>
</thead>
<tbody>
<?php get_payment(); ?>
</tbody>
</table>
<div class="card-body" style="background-color:#3498DB;color:FFFFFF;">
<h3>Make new Payment</h3>
</div>
<div class="card-body"></div>
<form class="form-group" action="func.php" method="post">
<label> Customer Name</label>
<input type="text" name="customer_name" class="form-control">
<label>Payment ID</label>
<input type="text" name="Payment_id" class="form-control"><br>
<label>Amount</label>
<input type="text" name="Amount" class="form-control"><br>
<label>Customer ID</label>
<input type="text" name="customer_id" class="form-control"><br>
<!-- <label>Customer Name</label>
<input type="text" name="customer_name" class="form-control"><br>-->
<label>Payment Type</label>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</div>
</body>
</html>
Signup.php:
<?php
include_once 'header.php';
?>
<section class="main-container">
<div class="main-wrapper">
<h2>signup</h2>
<form class="signup-form" action="includes/signup.inc.php" method="POST">
<input type="text" name="first" placeholder="firstname">
<input type="text" name="last" placeholder="lastname">
<input type="text" name="email" placeholder="e-mail">
<input type="text" name="uid" placeholder="username">
body { }
line-height:1;
} header nav ul
{ float:left;
article,aside,details,figcaption,figure, }
footer,header,hgroup,menu,nav,section {
display:block;
} header nav ul
li{
float:left;
list-style:none;
nav ul { }
list-style:none;
} header nav ul li a
{ font-family:
blockquote, q arial; font-
{ quotes:none; size: 20 px;
} color: #111;
line-height: 63px;
blockquote:before, blockquote:after,
q:before, q:after { a
content:'';
content:none;
}
} er .nav-login
{ float: right;
h }
e vertical-align:baseline;
a background:transparent;
d
{ margin:
0;
padding:0;
font-size:100%;
/* change colours to suit your needs */
ins {
background-color:#ff9;
color:#000;
text-decoration:none;
del {
text-decoration: line-through;
}
abbr[title], dfn[title] {
border-bottom:1px dotted;
cursor:help;
}
table {
border-collapse:collapse;
border-spacing:0;
}
/* signup.php*/
.signup-form
{ width: 400px; margin: 0 auto; padding-top: 30px;
}
.signup-form input {
.signup-form button
{ display: block; margin: 0 auto;
width: 30%; height: 40px; border: none;
background-color: #222; font-family: arial;
font-size: 20px; color: #fff; cursor: pointer;
}
.signup-form button:hover
{ background-color: #111;
}
header .nav-login form button
{ float: left;
width: 60px; height:
30px; margin-right:
10px; border: none;
background-color:
#f3f3f3; font-family:
arial;
font-size: 14px;
color: #111;
cursor: pointer;
{ background-color: #ccc;
}
header .nav-login a
{ display: block;
width:30px;
height: 30px;
border: none;
float: left;
background-color:
#fff; font-family: arial;
font-size: 16px;
color: #111;
line-height: 63px;
cursor: pointer;
}
.main-
container{ padding
-top: 40px;
}
Trainer_details.php
<!DOCTYPE html>
<?php include("func.php");?>
<html>
<head>
<title>Members details</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
</head>
<body>
<div class="jumbotron" style="background: url('images/2.jpg') no-repeat;background-size: cover;height:
300px;"></div>
<div class="container">
<div class="card">
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="row">
<div class="col-md-1">
<a href="admin-panel.php" class="btn btn-light ">Go Back</a>
</div>
<div class="col-md-3"><h3>Members Details</h3></div>
<div class="col-md-8">
<form class="form-group" action="trainer_search.php" method="post">
<div class="row">
<div class="col-md-10"><input type="text" name="search" class="form-control" placeholder="enter
contact"></div>
<div class="col-md-2"><input type="submit" name="patient_search_submit" class="btn btn-light"
value="Search"> </div></div>
</form></div></div></div>
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="card-body">
<table class="table table-hover">
<thead>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Email id</th>
<th>Member ID</th>
<th>Trainer ID</th>
</tr>
</thead>
<tbody>
<?php get_patient_details(); ?>
</tbody>
</table>
</div>
</div>
</div) >
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</div>
</body>
</html>
Trainer_search.php
<html>
<head>
<title>Patient details</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
</head>
<body>
<?php
include("func.php");
if(isset($_POST['patient_search_submit']))
{
$contact=$_POST['search'];
$query="select * from doctorapp where contact='$contact'";
$result=mysqli_query($con,$query);
echo "<div class='container-fluid' style='margin-top:50px;'>
<div class'card'>
<div class='card-body'><a href='trainer_details.php' class='btn brn-light'>Go Back</a></div>
<img src='images/1.jpg'>
<table class='table table-hover'>
<thead>
<tr>
<th>First name</th>
<th>Last name</th>
<th>Email id</th>
<th>Contact</th>
<th>Trainer ID</th>
</tr>
</thead>
<tbody>
</div></div>";
while ($row=mysqli_fetch_array($result)){
$fname=$row ['fname'];
$lname=$row['lname'];
$email=$row['email'];
$contact=$row['contact'];
$docapp=$row
['docapp']; echo " <tr>
<td>$fname</td>
<td>$lname</td>
<td>$email</td>
<td>$contact</td>
<td>$docapp</td>
</tr>";
}
echo "</tbody></table></div></div></div>";
}
?>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</body>
</html>
Trainer.php
<!DOCTYPE html>
<?php include("func.php");?>
<html>
<head>
<title>Members details</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
</head>
<body>
<div class="jumbotron" style="background: url('images/2.jpg') no-repeat;background-size: cover;height:
300px;"></div>
<div class="container">
<div class="card">
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="row">
<div class="col-md-1">
<a href="admin-panel.php" class="btn btn-light ">Go Back</a>
</div>
<div class="col-md-3"><h3> Trainer Information</h3></div>
<div class="col-md-8">
<form class="form-group" action="patient_search.php" method="post">
<div class="row">
</form></div></div></div>
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="card-body">
<table class="table table-hover">
<thead>
<tr>
<th>Trainer ID</th>
<th>Name</th>
<th>Phone</th>
</tr>
</thead>
<tbody>
<?php get_trainer(); ?>
</tbody>
</table>
<div class="card-body" style="background-color:#3498DB;color:FFFFFF;">
<h3>Register new Trainer</h3>
</div>
<div class="card-body"></div>
<form class="form-group" action="func.php" method="post">
<label>Trainer ID</label>
<input type="text" name="Trainer_id" class="form-control"><br>
<label>Name</label>
<input type="text" name="Name" class="form-control"><br>
<label>Phone</label>
<input type="text" name="phone" class="form-control"><br>
<input type="submit" class="btn btn-primary" name="tra_submit" value="Register">
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</div>
</body>
</html>
Dbh.inc.php:
<?php
$dbServername = "localhost";
$dbUsername = "root";
$dbPassword = "";
$dbName = "loginsystem";
https://www.scribd.com/document/542328046/PHP-Final-
Micro-Project-UPDATED
https://www.scribd.com/document/139226193/PhP-
Project-Report
https://openai.com/index/chatgpt/