Docter Appointment Booking System
Docter Appointment Booking System
Project Report on
Doctor Appointment Booking System
Submitted in the Partial fulfillment of the requirement for awarding the degree of
By
Devanshi Ranpariya
Foram Savaliya
Affiliated to
This report contains all the outputs of a project undertaken to develop a working model of Doctor
Appointment Booking Systemand to study the existing working system. As part of this study, we analyzed
the requirements of the working model and tried to improve it using the technological functionality that the
current computer science provides.
This volume contains the documentation summary of the working system, the background study and
analysis, the technical requirements and the working specification of the developed system.
We recommend the user to take the advantage of the study presented here and implement the system
with their required improvisation. We hope this study will reduce the burden of the reanalysis of the
development phase.
On the very outset of this report, I would like to extend my sincere & heartfelt obligation towards all
the personages who have helped me in this endeavor. Without their active guidance, help, cooperation &
encouragement, I would not have made headway in the project. I am ineffably indebted to our HOD /
Prof.Jaydeep Ramani for conscientious guidance and encouragement to accomplish this assignment.
I am extremely thankful and pay my gratitude to my project guide Daya Usdad his valuable
guidance and support on completion of this project in its presently.
I extend my gratitude to Department Of Computer Science, Late P.S. Hirapara Mahila BCA College
-Jetpur for giving me this opportunity.
Thanking You,
Devanshi Ranapriya (003003142347)
Foram Savaliya (003003142360)
(1.1) Definition:-
(1.2) Scope:-
(1.3) Objective:-
Docter on-line.com is purely a web site and lot of effort is put to make it as user friendly.
Vast information is maintained in this site so as to develop good awarness in public regarding health.
The system just acts like a docter asking simple queries andreplying the queries,ehich is very user
friendly.
(2.1)Introduction:-
This site is useful for people who face the problem personally, and is also helpful in
knowing information about medical sciences.
The doctor on-line it is not meant for serious problems and fixing of personnel
appointment with the doctor.
Provide a website where a client directly goes for online consulting a doctoring case
of urgency.
(2.2)Feasibility Study:-
Feasibility study gives the idea about our software that it is feasible to develop
project within such type of tools.it gives ratio to our project, how much area we can
consuct.it is one type of measurable for measured our project.
1. Technical Feasibility
2. Economical Feasibility
3. Operational Feasibility
1. Technical Feasibility:-
Our web site is developed with the help of current equipment and existing
Software & hardware technology.
Browser MozilaFirefox -
Hardware Technology:-
Category Sub-category
Mother Board G 31
RAM DDR2(2GB)
Mouse Logitech
2. Economical Feasibility:-
We can get benefit on the basic of developing this website to make cost of any
software and hardware is acceptable.
Notepad++(php) - Opensource
3. Operation Feasibility:-
Soluation:-time is not refreshing when create a timestamp of the data & time.
Problem: - user is not getting the same time appointment in another user.
Soluation:-when the fetch row of the user appointment and condition is check the this time
appointment is avaliable or not when the time is not available user is get the appointment or time is
available when user is get the message time is already booking.
Our website provide a where a client directly goes for online consulting a doctoring case of urgency.
This site is useful for people who face the problem personally.
Is also helpful in knowing information about medical sciences.
User:
Login
Registration
Feedback
Forget password
About us
Contact us
Doctor Detail
Login:
o User can login.
Registration:
o User can registration.
Feedback:
o User can give the feedback.
Forget password:
o User can forget password in our site.
About us:
o User can show the about in our site.
Contact us:
o User can contact for the Developers.
Doctor Detail :
o User can show Doctor information and take appointment.
Login
Manage Registration
Manage Feedback
Manage Patient
Add Doctor
Manage Admin
Login:
o Admin can login.
Manage Registration:
o Admin can view registration user & delete.
Manage Feedback:
o Admin can view feedback user & delete.
Manage Patient:
o Admin can view patient & delete.
Add Doctor:
o Admin can view Doctor &insert, update & delete.
Manage Admin:
o Show the how many admin in our site.
Docter:
Login
Appointment
Login:
o Docter can login.
Appointment:
o Docter can show the all appointment.
The symbols that are used the data flow diagram carry following meaning.
It symbolizes
Rectangle The sources
It
Circle Symbolizes
The use data process
Unmarked It symbolizes
line Connectivity
Without a
It symbolized
Marked Connectivity
Line Without a
Round It symbolized
Rectangle Connectivity
Without a
Start/End
Logout Login
Login
Add View
User User
Add View
FeedBack
Feedback Feedback
Add View
Appoinm AdmitPatient Appoinm
ent ent
View Add
Docter
Docter Docter
View Add
ContactUs
Admin Admin
Email City
Lastnmae Gender
Firstname Contact
U_type Securituque.
Registeration
U_id Answer
Age
has
Gender
Contact
Appoinment
Disease
Date
Status1 Status Date_Time D_id Time
f_id u_id
Name FeedBack
Qulification
has Docter
Email
Address
charge Information File Type
Registration:-
Feedback:-
Admin:-
No fieldname Data Type Size Remarks
1 id numeric (18,0) primaryKey
2 name numeric (50)
3 email_id varchar (50)
4 contact numeric (50)
Home
––
Docterdetail
BCA Dept., SPKM-Jetpur | 21 A Project on: Docter Appointment
Booking System
BCA Dept., SPKM-Jetpur | 22 A Project on: Docter Appointment
Booking System
This page show the docter information
Giveappointment
This page show the user can give the succesfullly appointment
Admin can view the patient detail & delete & send the docter
s
BCA Dept., SPKM-Jetpur | 34 A Project on: Docter Appointment
Booking System
Viewloginuser
This page show the user can forget your passwordwhen give the username
This page show the user can give answer for the question
This page show the user can give the newpassword & confirmpassword
Style.css
*
{
margin:0px;
padding:10px;
}
#wrapper
{
margin:0 auto;
width:3300px;
}
#heading
{
background:#4286AD;
padding:20px 20px 130px 10px;
font-size:150px;
color:white;
text-shadow:10px 10px 10px white;
font-family:monotype corsiva;
}
#content
{
padding:0px 0px 10px 10px;
//background:#D4E6E6;
font-size:40px;
border-top:2px dashed black;
border-bottom:2px dashed black;
background-image:url('../image/bg44.jpg');
.font
{
font-size:90px;
}
.red
{
color:red;
font-size:100px;
}
}
.menu
{
}
.menu1
{
border-color:#E21B1B;
text-shadow:10px 10px 10px #188DF9;
border-radius:50px;
background:#31698C;
border:2px solid black;
border-color:black;
padding:0px 0px 10px 10px;
font-family:monotype corsiva;
}
.a
{
color:white;
font-size:70px;
font-family:monotype corsiva;
}
.font2
{
font-size:80px;
}
.font1
{
font-size:60px;
}
.staff
{
background:#31698C;
border:2px solid black;
color:white;
border-color:black;
}
.contactus
{
border-radius:50px;
}
.tr1
{
color:white;
}
.staff1
{
background:#31698C;
color:white;
}
.button
{
font-size:50px;
border-radius:30px;
.td
{
font-size:60px;
border-radius:30px;
}
.login
{
border-radius:30px;
<script language="javascript">
function f1()
{
return confirm("are you sure you want to delete...");
}
function f2()
{
return confirm("are you sure you want to edit...");
}
</script>
<?php
session_start();
?>
<html>
<head><link href="style/style.css" rel="stylesheet" style="text/css"></link>
<title>My Site</title>
</head>
<body>
<div id="wrapper">
<div id="heading" align="center"><h3><big>D</big>octer <big>A</big>ppoinment <big>S</big>ystem
<img src="image/images_348.jpg" class="float-left" height="400" width="350"></img>
<?php
if(isset($_SESSION['u_id']))
{
echo"<a href=index.php?page=logout class=float-right>
<img src='image/unlock.png' height='200' width='200'></a>";
}
else
{
echo"<a href=index.php?page=login class=float-right>
<img src='image/users.png' height='200' width='200'></a>";
}
?>
</div>
if(isset($_SESSION['u_type']))
{
if($_SESSION['u_type']==0)
{
echo"<a href='index.php?page=aboutus' class='a'>About Us</a><br><br>";
echo"<a href='index.php?page=contactus' class='a'>Contact Us</a><br><br> ";
echo"<a href='index.php?page=feedback' class='a'>Feedback</a><br><br>";
echo"<a href='index.php?page=docter' class='a'>Doctor Detail</a><br><br>";
echo"<a href='index.php?page=viewuser' class='a'>viewuser</a><br><br>";
}
else if($_SESSION['u_type']==1)
{
else
{
echo"<a href='index.php?page=appoinment' class='a'>Appoinment</a><br><br> ";
}
else
{
?>
</div>
<div id="footer" align="center">prepared by:Devanshi Ranpariya & Foram Savaliya </div>
</div>
</body>
</html>
Home1.php
<html>
<head>
<title>Demo 5 - Semi-transparent Thumbnails</title>
<link href="style/js-image-slider.css" rel="stylesheet" type="text/css" />
<script src="style/js-image-slider.js" type="text/javascript"></script>
<link href="generic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="sliderFrame">
<div id="slider">
<!--thumbnails-->
<div id="thumbs">
<a class="lazyImage" href="image/img1.jpg" ></a>
<a class="lazyImage" href="image/img2.jpg"></a>
<a class="lazyImage" href="image/img4.jpg" ></a>
<a class="lazyImage" href="image/img5.jpg"></a>
<a class="lazyImage" href="image/img6.jpg"></a>
<a class="lazyImage" href="image/img7.jpg" ></a>
<a class="lazyImage" href="image/img8.jpg"></a>
<a class="lazyImage" href="image/img9.jpg"></a>
<a class="lazyImage" href="image/img10.jpg" ></a>
<a class="lazyImage" href="image/img11.jpg"></a>
<a class="lazyImage" href="image/img12.jpg"></a>
<a class="lazyImage" href="image/img13.jpg" ></a>
<a class="lazyImage" href="image/img14.jpg"></a>
<a class="lazyImage" href="image/img15.jpg"></a>
</div>
</div>
<table align="center" class="font">
<tr>
<td class="font">
<h3>This site is useful foe people who face the problem personally <br>
and is also helpful in knowing information about <br>medical science</h3>
<br>
<br>
<h3>The docter on-line it is not meant for serious problem and<br>
fixing of personnel Appinment with the docter.</h3>
</td>
</tr>
</table>
</body>
</table>
<html>
<head>
</head>
<body>
</form>
</div>
</body>
</html>
Contactus.php
<?php
include("connection.php");
$query="select * from admin";
$result=mysql_query($query);
if($result)
{
echo"<table border=1 align=center class='register'>";
echo"<tr><th colspan=5 class=tr><h1>Contact us</h1></th></tr>";
echo"<tr>";
while($row=mysql_fetch_array($result))
{
Include/Admin.php
<?php
include("connection.php");
$editmode=false;
if(isset($_REQUEST['id']))
{
$editmode=true;
$query="select * from admin where id=$_REQUEST[id]";
$result=mysql_query($query);
if($result)
{
$row=mysql_fetch_array($result);
}
else
{
echo mysql_error();
}
}
?>
<html>
<script type="text/javascript" language="javascript">
function check_valid()
{
var NameRegex=/^[A-Za-z]{1,15}$/;
var EmailRegex=/^[A-Za-z0-9._]*\@[A-Za-z]*\.[A-Za-z]{2,5}$/;
var NoRegex=/^\d{10}$/;
var name=document.frmlogin.name.value;
var email_id=document.frmlogin.email_id.value;
Action/Add_admin.php
<?php
include("connection.php");
if(isset($_REQUEST['id']))
{
if(isset($_REQUEST['id']))
{
$query="update admin set name='$_REQUEST[name]',
email_id='$_REQUEST[email_id]',contact='$_REQUEST[contact]' where
id='$_REQUEST[id]'";
$result=mysql_query($query);
if($result)
{
header("location:../index.php?page=manageadmin");
}
else
{
echo mysql_error();
}
}
else
{
echo mysql_error();
}
}
else
{
if(isset($_REQUEST['name'])&&isset($_REQUEST['email_id'])&&isset($_REQUEST
['contact']))
{
$name=$_REQUEST['name'];
$email_id=$_REQUEST['email_id'];
$contact=$_POST['contact'];
$query="insert into admin(name,email_id,contact)values
('$name','$email_id','$contact')";
$result=mysql_query($query);
if($result)
{
header("location:../index.php?page=manageadmin");
}
BCA Dept., SPKM-Jetpur | 54 A Project on: Docter Appointment
Booking System
else
{
echo mysql_error();
}
}
}
?>
Action/deleteadmin.php
<?php
include("connection.php");
echo $query="delete from admin where id=".$_REQUEST[id];
if(mysql_query($query,$con))
{
header("location:../index.php?page=manageadmin");
}
else
{
echo mysql_error();
}
mysql_close();
?>
Include/Login.php
if(username=="")
{
alert("Enter Your UserName");
document.frmregistration.username.focus();
return false;
}
else if(!NameRegex.test(username))
{
alert("Enter Only Character In UserName");
}
?>
<table border="20" class="register">
<tr class="heading">
<th colspan="3" class="tr">Login</th>
</tr>
<tr class="tr">
<td class="tr">Username</td>
<td class="tr">
<input type="text" name="username" placeholder="Username" class="td">
</td>
</tr>
<tr class="tr">
<td class="tr">Password</td>
<td class="tr">
<input type="password" name="password" placeholder="Password" class="td">
</td>
Include/Logout.php
<?php
header("location:./index.php?page=login");
session_destroy();
?>
Action.checklogin.php
<?php
include("connection.php");
$username=$_REQUEST['username'];
$password=$_REQUEST['password'];
$query="select * from registration where username='$username' and password='$password'";
$result=mysql_query($query,$con);
if($row=mysql_fetch_array($result))
{
echo "login successfully";
BCA Dept., SPKM-Jetpur | 57 A Project on: Docter Appointment
Booking System
$_SESSION['username']=$row['username'];
$_SESSION['u_id']=$row['u_id'];
$_SESSION['u_type']=$row['u_type'];
header("location:../index.php?page=home&msg=1");
}
else
{
echo "first you are create a account";
header("location:../index.php?page=login&msg=2");
}
mysql_close();
?>
Action/connection.php
<?php
$con=mysql_connect("localhost","root","root");
$db=mysql_select_db("project");
session_start();
?>
Include/Changepassword.php
Action/changepass.php
<?php
include("connection.php");
$pass1=$_REQUEST['oldpass'];
$pass2=$_REQUEST['newpass'];
$pass3=$_REQUEST['confirmpass'];
if(isset($pass1)&&isset($pass2)&&isset($pass3))
{
session_start();
$u_id=$_SESSION['u_id'];
echo $query="select * from registration where u_id='$u_id'";
$result=mysql_query($query,$con);
while($row=mysql_fetch_array($result))
{
$pass=$row['password'];
if($pass2==$pass3)
{
if($pass1==$pass)
{
$query1="update registration set password='$pass2' where
u_id='$u_id'";
$res=mysql_query($query1,$con);
header("location:../index.php?page=home");
}
else
{
header("location:../index.php?page=changepassword & msg=6");
}
}
}
}
?>
}
</script>
<html>
<head>
</head>
<body>
<form name="frmregistration" action="action/for1.php" method="POST " onsubmit="return
check_valid();">
<?php
if(isset($_REQUEST['msg']))
{
if($_REQUEST['msg']==3)
{
echo"<h2 class='red'>invalid UserName</h2>";
}
}
?>
<table border=1 class="forpass">
<tr class="a">
<th colspan=2 class="td" >Forget Password..??</th>
</tr>
<tr class="a">
<td class="td" >UserName</td>
BCA Dept., SPKM-Jetpur | 61 A Project on: Docter Appointment
Booking System
<td><input type="text" name="username" placeholder="UserName" class="td" ></td>
</tr>
<tr class="a">
<td colspan="2" align="center" class="button">
<input type="submit" name="submit" value="submit" class="button">
<input type="button" name="clear" value="clear" class="button"></td>
</tr>
</table>
</form>
</body>
</html>
Include/Forgetpassword1.php
if(seq_ans=="")
{
alert("Enter Your Answer");
document.frmregistration.seq_ans.focus();
return false;
}
else if(!NameRegex.test(seq_ans))
{
alert("Enter Only Character In Answer");
document.frmregistration.seq_ans.focus();
return false;
}
}
</script>
<?php
$con=mysql_connect("localhost","root","root");
$db=mysql_select_db("project",$con);
$username=$_REQUEST['username'];
if(isset($username))
{
$query="select * from registration where username='$username'";
$res=mysql_query($query,$con);
if($res)
{
BCA Dept., SPKM-Jetpur | 62 A Project on: Docter Appointment
Booking System
if($raw=mysql_fetch_array($res))
{
$result=$raw['sequrity_question'];
}
}
else
{
echo mysql_error();
}
}
?>
<html>
<head>
</head>
<body>
<form name="frmregistration" action="action/for2.php" method="POST" onsubmit="return
check_valid();">
<?php
if(isset($_REQUEST['msg']))
{
if($_REQUEST['msg']==4)
{
echo"<h2 class='red'>invalid Answer</h2>";
}
}
?>
<table border=1 class="forpass">
<tr class="a">
<th colspan=2 class="textbox">Forget Password..??</th>
</tr>
<tr class="a">
<td class="td" >Security Question:-<?php echo $result;?></td>
</tr>
<?php
echo"<input type='hidden' name='username' class='td' value='$username'>";
?>
<tr class="a"><td class="td">answer:<input type="text" name="seq_ans"class="td" > </td></tr>
<tr class="a">
<td colspan=2 align="center" class="button">
<input type="submit" name="submit" value="Next" class="button">
<input type="button" name="clear" value="clear" class="button"></td>
</tr>
</table>
</form>
</body>
</html>
if(newpass=="")
{
alert("Enter Your NewPassword");
document.frmregistration.newpass.focus();
return false;
}
if(confirmpass=="")
{
alert("Enter Your ConfirmPassword");
document.frmregistration.confirmpass.focus();
return false;
}
}
</script>
<html>
<head>
</head>
<body>
<form name="frmregistration" action="action/for3.php" method="POST" onsubmit="return
check_valid();">
<?php
if(isset($_REQUEST['msg']))
{
if($_REQUEST['msg']==5)
{
echo"<h2 class='red'>invalid Confirm Password</h2>";
}
}
?>
<table border=1 class="forpass">
<?php
$username=$_REQUEST['username'];
if(isset($username))
echo "<input type='hidden' name='username' value='$username'>";
Action/for1.php
<?php
include("connection.php");
$username=$_REQUEST['username'];echo"hi";
if(isset($username))
{
$query="select * from registration where username='$username'";
$result=mysql_query($query,$con);
if($row=mysql_fetch_array($result))
{
echo $nm=$row['username'];
if($username==$nm)
{
header("location:../index.php?page=forgetpassword1&username=
$_REQUEST[username]");
}
else
{
header("location:../index.php?page=forgetpassword");
}
}
Action/for2.php
<?php
include("connection.php");
$seq_ans=$_REQUEST['seq_ans'];
$username=$_REQUEST['username'];
if(isset($seq_ans))
{
$query="select * from registration where username='$username'";
$result=mysql_query($query);
if($row=mysql_fetch_array($result))
{
$ans=$row['seq_ans'];
if($seq_ans==$ans)
{
header("location:../index.php?page=forgetpassword2&username=
$_REQUEST[username]");
}
else
{
header("location:../index.php?page=forgetpassword1&username=
$_REQUEST[username]&msg=4");
}
}
else
{
header("location:../index.php?page=forgetpassword1");
}
}
?>
<?php
include("connection.php");
echo $username=$_REQUEST['username'];
echo $password=$_REQUEST['password'];
echo $pass1=$_REQUEST['newpass'];
echo $pass2=$_REQUEST['confirmpass'];
if(isset($pass1)&&($pass2))
{
if(($pass1)==($pass2))
{
$query="update registration set password='$pass2' where
username='$username'";
if(mysql_query($query))
{
header("location:../index.php?page=login");
}
else
{
echo mysql_error();
}
}
else
{
header("location:../index.php?page=forgetpassword2&msg=5");
}
}
?>
include/Registration.php
<html>
<head>
</head>
<body>
<form name="frmregistration" action="action/register_insert.php" method="post" onsubmit="return
check_valid();">
<?php
if(isset($_REQUEST['msg']))
{
if($_REQUEST['msg']==7)
{
echo"<h1 class='red'>change Your UserName</h1>";
<tr class="tr">
<th colspan=2 class="tr">RegistrationForm</th>
</tr>
<tr class="tr">
<td class="tr">First Name</td>
<td class="td">
<input type="text" name="firstnm" value='<?php if($editmode==true){echo
$row['firstnm'];}?>' placeholder="First Name" class="td">
</td>
</tr>
<tr class="tr">
<td class="tr" >Last Name</td>
<td class="td">
<input type="text" name="lastnm" value='<?php if($editmode==true){echo
$row['lastnm'];}?>' placeholder="Last Name" class="td">
</td>
</tr>
<tr class="tr">
<td class="tr">E-mail</td>
<td class="td">
<input type="text" name="emailid" value='<?php
if($editmode==true){echo $row['emailid'];}?>' placeholder="E-mail" class="td">
</td>
</tr>
<tr class="tr">
<td class="tr">UserName</td>
<td class="td">
<input type="text" name="username" value='<?php if($editmode==true){echo
$row['username'];}?>' placeholder="UserName" class="td">
</td>
</tr>
</tr>
<tr class="tr">
<td class="tr" >City</td>
<td class="td">
<input type="text" name="city" value='<?php if($editmode==true){echo
$row['city'];}?>' placeholder="City" class="td">
</td>
</tr>
<tr class="tr">
<td class="tr">Gender</td>
<td>
<?php
if($editmode==true)
{
if($row['gender']=="male")
{
echo"<input type='radio' name='gender' value='male' checked='male'>male
<input type='radio' name='gender' value='female'>female";
}
else
{
<?php
if(editmode==true)
{
if($row['sequrity_question']=='What Is Your Best Friend Name')
{
echo "<option value='friend' selected>What Is Your Best Friend Name</option>";
}
else
{
echo "<option value='friend'>What Is Your Best Friend Name</option>";
}
if($row['sequrity_question']=='What Is Your Mother Name')
{
echo "<option value='mother' selected>What Is Your Mother Name</option>";
}
else
{
echo "<option value='mother'>What Is Your Mother Name</option>";
}
if($row['sequrity_question']=='What Is Your Father Name')
{
echo "<option value='father' selected>What Is Your Father Name</option>";
}
else
{
echo "<option value='father'>What Is Your Father Name</option>";
}
if($row['sequrity_question']=='What Is Your Hobby')
{
echo "<option value='hobby' selected>What Is Your Hobby</option>";
}
?>
</select></td>
</tr>
<tr class="tr">
<td class="tr" >Answer</td>
<td class="td">
<input type="text" name="seq_ans" value='<?php if($editmode==true){echo
$row['seq_ans'];}?>' placeholder="Answer" class="td">
</td>
</tr>
<tr class="tr">
<?php
if($editmode==true)
{
echo"<td colspan=2 align='center' class='button'>
<input type='submit' name='submit' value='Edit' class='button'></td>";
}
else
{
echo"<td colspan=2 align='center' class='button'>
<input type='submit' name='submit' value='Add' class='button'></td>";
}
?>
</tr>
</table>
</form>
</body>
</html>
Register_add.php
<?php
include("connection.php");
if(isset($_REQUEST['u_id']))
{
$query="insert into
registration(firstnm,lastnm,emailid,username,password,address,city,gende
r,contact,sequrity_question,seq_ans)values
('$firstnm','$lastnm','$emailid','$username','$password','$address','$city','$
gender' ,'$contact','$sequrity_question','$seq_ans')";
$result=mysql_query($query);
if($result)
{
header("location:../index.php?page=home1");
}
else
{
echo mysql_error();
}
}
else
{
header("location:../index.php?page=viewdocter");
}
}
}
?>
Register_delete
<?php
$con=mysql_connect("localhost","root","root");
$db=mysql_select_db("project");
$query="delete from registration where u_id=".$_REQUEST[u_id];
BCA Dept., SPKM-Jetpur | 75 A Project on: Docter Appointment
Booking System
//echo $query;
if(mysql_query($query,$con))
{
header("location:../index.php?page=viewregister");
}
else
{
echo mysql_error();
}
mysql_close();
?>
Include/feedback.php
if(f_name=="")
{
alert("Enter Your UserName");
document.frmregistration.f_name.focus();
return false;
}
else if(!NameRegex.test(f_name))
{
alert("Enter Only Character In UserName");
document.frmregistration.f_name.focus();
return false;
}
if(f_type=="")
{
alert("Enter Your Type");
document.frmregistration.f_type.focus();
return false;
}
else if(!NameRegex.test(f_type))
{
<tr class="tr2">
<td class="tr2" >Feedback</td>
<td class="td" >
<textarea name="f_feedback" class="td" placeholder="Feedback"></textarea>
</td>
</tr>
<tr class="tr2">
<td colspan=2 align="center" class="button">
<input type="submit" name="submit" value="submit" class="button" >
<input type="button" name="clear" value="clear" class="button" >
</td>
</tr>
</table>
Action/Feedback_add
<?php
include("connection.php");
$f_name=$_REQUEST['f_name'];
$f_type=$_REQUEST['f_type'];
$f_feedback=$_REQUEST['f_feedback'];
$query="insert into feedback(f_name,f_type,f_feedback)values
('$f_name','$f_type','$f_feedback')";
$result=mysql_query($query);
if($result)
{
header("location:../index.php?page=home1");
}
else
{
echo mysql_error();
}
?>
Action/feedback.delete
<?php
$con=mysql_connect("localhost","root","root");
$db=mysql_select_db("project");
$query="delete from feedback where f_id=".$_REQUEST[f_id];
//echo $query;
if(mysql_query($query,$con))
{
header("location:../index.php?page=viewfeedback");
}
else
{
Include/Docter.php
<?php
$con=mysql_connect("localhost","root","root");
$db=mysql_select_db("project");
echo "hi";
if(isset($_REQUEST['name'])&&
isset($_REQUEST['city'])&&
isset($_REQUEST['age'])&&
//isset($_REQUEST['gender']))&&
isset($_REQUEST['contact'])&&
isset($_REQUEST['disease'])&&
isset($_REQUEST['time'])&&
isset($_REQUEST['date'])&&
isset($_REQUEST['city']))
{
$d_name=$_REQUEST['name'];
$d_age=$_REQUEST['age'];
//$d_gender=$_REQUEST['gender'];
$d_contact=$_REQUEST['contact'];
$d_disease=$_REQUEST['disease'];
$d_time=$_REQUEST['time'];
$d_date=$_REQUEST['date'];
$d_city=$_REQUEST['city'];
echo $query="insert into
docter(d_name,d_age,d_contact,d_disease,d_time,d_date,d_city)values
('$d_name','$d_age','$d_contact','$d_disease','$d_time','$d_date','$d_city')
";
$result=mysql_query($query);
if($result)
{
header("location:../index.php?page=viewpatient");
}
}
else
{
echo mysql_error();
header("location:../index.php?page=viewdocter");
}
?>
BCA Dept., SPKM-Jetpur | 79 A Project on: Docter Appointment
Booking System
Include/Detail.php
<html>
<head>
</head>
<body>
<form name="frmregistration" method="post" >
<?php
if(isset($_REQUEST['msg']))
{
if($_REQUEST['msg']==0)
{
echo"<h1 class='red'>your Appoinment Time is already Booking</h1>";
}
}
?>
</form>
</body>
</html>
<?php
include("connection.php");
$query="select * from adddocter";
$result=mysql_query($query);
if($result)
{
echo"<table align=center >";
echo"<tr><th colspan=19 class=font><h1>Information</h1></th></tr>";
while($row=mysql_fetch_array($result))
{
echo"<td class=table1 rowspan=8><img src=upload/".$row[9]." width=500px
height=800px></img></td></tr>";
echo"<tr><td class=tr colspan=1><b>Dr.</b>".$row[1]."<br></td></tr>";
echo"<tr><td class=tr colspan=1><b>Age:</b>".$row[2]."</td></tr>";
echo"<tr><td class=tr colspan=1><b>qulification:</b>".$row[5]."</td></tr>";
echo"<tr><td class=tr colspan=1>".$row[8]."</td></tr>";
echo"<tr><td class=tr colspan=1><b>Charge:</b>".$row[11]."</td></tr>";
echo"<tr><td class=tr colspan=1><b>Information:</b>".$row[10]."</td></tr>";
echo"<tr><td><a href=index.php?page=admit1&d_id=".$row['d_id']."
class=font>Add Appinment</a><br></td></tr> ";
}
echo"</table>";
}
?>
if(name=="")
{
alert("Enter Your Name");
document.frmregistration.name.focus();
return false;
}
else if(!NameRegex.test(name))
{
alert("Enter Only Character In Name");
document.frmregistration.name.focus();
return false;
}
if(age=="")
{
alert("Enter Your Age");
document.frmregistration.age.focus();
return false;
}
else if(!AgeRegex.test(age))
{
alert("Enter Only Digit In Age");
document.frmregistration.age.focus();
return false;
}
if(contact=="")
{
if(qulification=="")
{
alert("Enter Your qulification");
document.frmregistration.qulification.focus();
return false;
}
else if(!NameRegex.test(qulification))
{
alert("Enter Only character In Qulification");
document.frmregistration.qulification.focus();
return false;
}
if(emailid=="")
{
alert("Enter Your Email");
document.frmregistration.emailid.focus();
return false;
}
else if(!EmailRegex.test(emailid))
{
alert("Enter Proper Email");
document.frmregistration.emailid.focus();
return false;
}
}
</script>
<?php
include("connection.php");
$editmode=false;
if(isset($_REQUEST['d_id']))
{
$editmode=true;
$query="select * from adddocter where d_id=$_REQUEST[d_id]";
$result=mysql_query($query);
if($result)
{
<html>
<head>
</head>
<body>
<form name="frmregistration" action="action/docter_add.php" method="post"
enctype="multipart/form-data" onsubmit="return check_valid();">
<table border=13 class="register">
<?php
if(isset($_REQUEST['d_id']))
{
echo "<input type='hidden' name='d_id' value=$_REQUEST[d_id]";
}
?>
<tr class="tr">
<th colspan=2 class="tr">Add Docter</th>
</tr>
<tr class="tr">
<td class="tr">Name</td>
<td class="td">
<input type="text" name="name" value='<?php
if($editmode==true){echo $row['name'];}?>' placeholder="Name" class="td">
</td>
</tr>
<tr class="tr">
<td class="tr" >Age</td>
<td class="td">
<input type="text" name="age" value='<?php
if($editmode==true){echo $row['age'];}?>' placeholder="Age" class="td">
</td>
</tr>
<tr class="tr">
<td class="tr">Gender</td>
<td>
<?php
if($editmode==true)
{
if($row['gender']=="male")
<?php
include("connection.php");
if(isset($_REQUEST['d_id']))
{
$allowedExts=array("gif","jpeg","jpg","png");
echo $_FILES["file"]["name"];
$extension=end(explode(".",$_FILES["file"]["name"]));
echo $extension;
if((($_FILES["file"]["type"]=="image/gif")||
($_FILES["file"]["type"]=="image/jpeg")||
($_FILES["file"]["type"]=="image/jpg")||
($_FILES["file"]["type"]=="image/png")))
{
if($_FILES["file"]["error"] > 0)
{
echo"returne code:".$_FILES["file"]["error"]."<br>";
}
if(file_exists("upload/".$_FILES["file"]["name"]))
{
echo $_FILES["file"]["name"]."already exists";
}
else
{
move_uploaded_file($_FILES["file"]["tmp_name"],
"../upload/".$_FILES["file"]["name"]);
"stored in:"."upload/".$_FILES["file"]["name"];
}
}
else
{
echo mysql_error();
}
echo $query="update adddocter set name='$_REQUEST[name]',
age='$_REQUEST[age]',gender='$_REQUEST[gender]',
contact='$_REQUEST[contact]',qulification='$_REQUEST[qulification]',
emailid='$_REQUEST[emailid]',address='$_REQUEST[address]',d_type='$_REQUEST[d_typ
e]',file='".$_FILES["file"]["name"]."' where d_id='$_REQUEST[d_id]'";
echo $query;
$result=mysql_query($query);
if($result)
{
BCA Dept., SPKM-Jetpur | 87 A Project on: Docter Appointment
Booking System
header("location:../index.php?page=viewdocter");
}
else
{
echo mysql_error();
}
}
else
{
if(isset($_REQUEST['name'])&&
isset($_REQUEST['age'])&&
isset($_REQUEST['gender'])&&
isset($_REQUEST['contact'])&&
isset($_REQUEST['qulification'])&&
isset($_REQUEST['emailid'])&&
isset($_REQUEST['address'])&&
isset($_REQUEST['d_type']) )
{
$name=$_REQUEST['name'];
$age=$_REQUEST['age'];
$gender=$_REQUEST['gender'];
$contact=$_REQUEST['contact'];
$qulification=$_REQUEST['qulification'];
$emailid=$_REQUEST['emailid'];
$address=$_REQUEST['address'];
$d_type=$_REQUEST['d_type'];
$a_id=$_SESSION['a_id'];
$allowedExts=array("gif","jpeg","jpg","png");
$_FILES["file"]["name"];
$extension=end(explode(".",$_FILES["file"]["name"]));
echo $extension;
if((($_FILES["file"]["type"]=="image/gif")||
($_FILES["file"]["type"]=="image/jpeg")||
($_FILES["file"]["type"]=="image/jpg")||
($_FILES["file"]["type"]=="image/png")))
{
if($_FILES["file"]["error"] > 0)
{
echo"returne code:".$_FILES["file"]["error"]."<br>";
}
if(file_exists("upload/".$_FILES["file"]["name"]))
{
echo $_FILES["file"]["name"]."already exists";
}
else
{
}
else
{
echo mysql_error();
}
}
else
{
header("location:../index.php?page=viewdocter");
}
}
?>
Action/Docter_delete.php
<?php
$con=mysql_connect("localhost","root","root");
$db=mysql_select_db("project");
$query="delete from adddocter where d_id=".$_REQUEST[d_id];
//echo $query;
if(mysql_query($query,$con))
{
header("location:../index.php?page=viewdocter");
BCA Dept., SPKM-Jetpur | 89 A Project on: Docter Appointment
Booking System
}
else
{
echo mysql_error();
}
?>
Include/admit1.php
if(name=="")
{
alert("Enter Your Name");
document.frmregistration.name.focus();
return false;
}
else if(!NameRegex.test(name))
{
alert("Enter Only Character In Name");
document.frmregistration.name.focus();
return false;
}
if(city=="")
{
alert("Enter Your City");
document.frmregistration.city.focus();
return false;
}
else if(!NameRegex.test(city))
{
alert("Enter Only Character In City");
document.frmregistration.city.focus();
return false;
}
BCA Dept., SPKM-Jetpur | 90 A Project on: Docter Appointment
Booking System
if(age=="")
{
alert("Enter Your Age");
document.frmregistration.age.focus();
return false;
}
else if(!AgeRegex.test(age))
{
alert("Enter Only Digit In Age");
document.frmregistration.age.focus();
return false;
}
if(contact=="")
{
alert("Enter Your Contact");
document.frmregistration.contact.focus();
return false;
}
else if(!NoRegex.test(contact))
{
alert("Enter Only 10 digit");
document.frmregistration.contact.focus();
return false;
}
if(disease=="")
{
alert("Enter Your disease");
document.frmregistration.disease.focus();
return false;
}
else if(!NameRegex.test(disease))
{
alert("Enter Only Character In disease");
document.frmregistration.disease.focus();
return false;
}
}
</script>
<html>
<head>
</head>
<body>
<form name="frmregistration" action="action/appoinment_add.php" method="post"
onsubmit="return check_valid();">
<?php
if(isset($_REQUEST['msg']))
{
if($_REQUEST['msg']==0)
include("connection.php");
echo $query="select * from adddocter where d_id=".$_REQUEST['d_id'];
echo $result=mysql_query($query,$con);
while($row=mysql_fetch_array($result))
{
echo $row['d_type'];
echo"<option value=".$row['d_id'].">".$row['d_type']."</option>";
?></select>
</td>
</tr>
<tr class="tr">
<td class="tr">Time</td>
<td><select name="time" class="td">
<option>--Select--</option>
<option> 10:00:00</option>
<option> 11:00:00</option>
<option> 12:00:00</option>
<option> 01:00:00 </option>
<option class="red"> Break</option>
<option> 03:00:00</option>
<option> 04:00:00</option>
<option> 05:00:00</option>
</select>
</td>
</tr>
<tr class="tr">
<td class="tr">Date</td>
<td colspan="3"><select name="date" class="td">
<option>year</option>
<option> 2001</option>
<option> 2002</option>
<option> 2003</option>
<option>2004</option>
<option> 2005</option>
<option>2006</option>
<option>2007</option>
<option> 2008</option>
<option> 2009</option>
<option>2010</option>
<option> 2011</option>
<option>2012</option>
Action/Appointment_add.php
<?php
include("connection.php");
$time=$_REQUEST['time'];
$d_id=$_REQUEST['d_id'];
$query="select * from admitpatient where time='$time' && d_id=$d_id";
$result=mysql_query($query);
if(mysql_num_rows($result)>0)
BCA Dept., SPKM-Jetpur | 95 A Project on: Docter Appointment
Booking System
{
header("location:../index.php?page=detail&msg=0");
}
else
{
$name=$_REQUEST['name'];
$city=$_REQUEST['city'];
$age=$_REQUEST['age'];
$gender=$_REQUEST['gender'];
$contact=$_REQUEST['contact'];
$disease=$_REQUEST['disease'];
$time=$_REQUEST['time'];
echo $date=$_REQUEST['date']."-".$_REQUEST['month']."-".$_REQUEST['day'];
$d_id=$_REQUEST['d_id'];
list($h,$i,$s)=explode(":",$time);
list($y,$m,$d)=explode("-",$date);
$date_time=mktime($h,$i,$s,$m,$d,$y);
$status=$_REQUEST['status'];
$status1=$_REQUEST['status1'];
echo $a_u_id=$_SESSION['u_id'];
$result1=mysql_query($query1);
if($result1)
{
include("connection.php");
echo $a_u_id=$_SESSION['u_id'];
echo $query="select * from admitpatient where
a_u_id=".$_SESSION['u_id'];
$result=mysql_query($query,$con);
while($row=mysql_fetch_array($result))
{
echo $row['a_id']."<br>";
header("location:../index.php?page=thank&a_id=".$row['a_id']);
}
}
else
{
echo mysql_error();
}
?>
Include/Thank.php
<html>
<body>
<table>
<tr align="center">
<td class="red" colspan=2>
<br>
<?php
include("connection.php");
$query="select * from admitpatient where u_id=".$_SESSION['u_id'];
$result=mysql_query($query,$con);
if($row=mysql_fetch_array($result))
{
echo" Thank you ".$row['name']." <br>";
echo" Your Appoinment is ".$row['time']." Clock<br>";
echo"Please come 10 minite ago in Hospital";
}
?>
</td>
</tr>
</table>
</body>
</html>
Action/patient_delete
<?php
$con=mysql_connect("localhost","root","root");
$db=mysql_select_db("project");
$query="delete from admitpatient where a_id=".$_REQUEST[a_id];
//echo $query;
if(mysql_query($query,$con))
{
header("location:../index.php?page=viewpatient");
}
Include/viewuser.php
<?php
include("connection.php");
$_SESSION['u_id'];
$query="select * from registration where u_id=".$_SESSION['u_id'];
$result=mysql_query($query);
if($result)
{
//echo "connected";
echo "<table border=1 class='register'>";
echo "<tr><th colspan=13 class=register><h1>View Registration</th></tr>";
echo "<tr> <th class=tr>FirstName</th>
<th class=tr>LastName</th>
<th class=tr>E-Mail</th>
<th class=tr>UserName</th>
<th class=tr>PassWord</th>
<th class=tr>Address</th>
<th class=tr>City</th>
<th class=tr>Gender</th>
<th class=tr>ContactNo</th>
<th class=tr>Security Question</th>
<th class=tr>Answer</th>
<th class=tr colspan=2>Action</th>
</tr>";
echo "<tr>";
while($row=mysql_fetch_array($result))
{
echo "<td class=tr>".$row[2]."</td>";
echo "<td class=tr>".$row[3]."</td>";
echo "<td class=tr>".$row[4]."</td>";
echo "<td class=tr>".$row[5]."</td>";
echo "<td class=tr>".$row[6]."</td>";
echo "<td class=tr>".$row[7]."</td>";
echo "<td class=tr>".$row[8]."</td>";
echo "<td class=tr>".$row[9]."</td>";
echo "<td class=tr>".$row[10]."</td>";
BCA Dept., SPKM-Jetpur | 98 A Project on: Docter Appointment
Booking System
echo "<td class=tr>".$row[11]."</td>";
echo "<td class=tr>".$row[12]."</td>";
echo "<td class=tr>
<a href=action/register_delete.php?u_id=".$row['u_id']."><img
src='image/delete.png' height='40' width='40' onclick='return
f1()'></img></a>
</td>
<td align=right class=tr>
<a href=index.php?page=registration1&u_id=".$row['u_id']."><img
src='image/pencil.png' height='30' width='30' onclick='return
f2()'></img></a></td>";
echo "</tr>";
}
echo "</table>";
}
else
{
echo mysql_query();
}
?>
Include/Viewregister.php
<?php
include("connection.php");
$query="select * from registration";
$result=mysql_query($query);
if($result)
{
//echo "connected";
echo "<table border=1 class='register'>";
echo "<tr><th colspan=12 class=register><h1>View Registration</th></tr>";
echo "<tr> <th class=tr>FirstName</th>
<th class=tr>LastName</th>
<th class=tr>E-Mail</th>
<th class=tr>UName</th>
<th class=tr>PassWord</th>
<th class=tr>Address</th>
<th class=tr>City</th>
<th class=tr>Gender</th>
<th class=tr>ContactNo</th>
<th class=tr>Security Question</th>
<th class=tr>Answer</th>
<th class=tr>Action</th></tr>";
echo "<tr>";
while($row=mysql_fetch_array($result))
Include/Viewfeedback.php
<?php
include("connection.php");
$query="select * from feedback";
$result=mysql_query($query);
if($result)
{
//echo "connected";
echo "<table border=1 class=register>";
echo "<tr><th colspan=11 class=tr>View Feedback</th></tr>";
echo "<tr> <th class=tr>Name</th>
<th class=tr>Type</th>
<th class=tr>Feedback</th>
<th class=tr>Action</th></tr>";
echo "<tr>";
while($row=mysql_fetch_array($result))
{
echo "<td class=tr>".$row[1]."</td>";
echo "<td class=tr>".$row[2]."</td>";
Include/Viewpatient.php
<?php
include("connection.php");
$tim=time('h:i:s');
$dat=date('y-m-d');
list($h,$i,$s)=explode(":",$tim);
list($y,$m,$d)=explode("-",$dat);
$z1=mktime($y,$m,$d)."<br>";
$a=$z1-86400;
$query="select * from admitpatient where date_time > $a";
$result=mysql_query($query);
if($result)
{
//echo "connected";
echo "<table border=1 class=register>";
echo "<tr><th colspan=11 class=tr>View Patient</th></tr>";
echo "<tr> <th class=tr>name</th>
<th class=tr>city</th>
<th class=tr>age</th>
<th class=tr>gender</th>
<th class=tr>contact</th>
<th class=tr>disease</th>
<th class=tr>time</th>
<th class=tr>date</th>
<th class=tr>Action</th>
</tr>";
echo "<tr>";
while($row=mysql_fetch_array($result))
BCA Dept., SPKM-Jetpur | 101 A Project on: Docter Appointment
Booking System
{
Include/Admit.php
<?php
include("connection.php");
$editmode=false;
if(isset($_REQUEST['a_id']))
{
$editmode=true;
$query="select * from admitpatient where a_id=$_REQUEST[a_id]";
$result=mysql_query($query);
BCA Dept., SPKM-Jetpur | 102 A Project on: Docter Appointment
Booking System
if($result)
{
$row=mysql_fetch_array($result);
}
else
{
echo mysql_error();
}
}
?>
<html>
<head>
</head>
<body>
<form action="action/docter.php" method="post">
<table border=1 class="register">
<?php
if(isset($_REQUEST['a_id']))
{
echo "<input type='hidden' name='a_id' value=$_REQUEST[a_id]";
}
?>
<tr class="tr">
<th colspan=2 class="tr">Add Apponment</th>
</tr>
<tr class="tr">
<td class="tr"> Name</td>
<td class="td"><input type="text" name="name" value='<?php
if($editmode==true){echo $row['name'];}?>' placeholder="Name" class="td"></td>
</tr>
<tr class="tr">
<td class="tr" >City</td>
<td class="td"><input type="text" name="city" value='<?php
if($editmode==true){echo $row['city'];}?>' placeholder="City" class="td"></td>
</tr>
<tr class="tr">
<td class="tr">Age</td>
<td class="td"><input type="text" name="age" value='<?php
if($editmode==true){echo $row['age'];}?>' placeholder="Ages" class="td"></td>
</tr>
<tr class="tr">
<td class="tr">Gender</td>
<td>
<?php
if($editmode==true)
{
if($row['gender']=="male")
{
</tr>
<tr class="tr">
<td colspan="2" align="center" class="tr">
<?php
Include/sending.php
<?php
//echo "dfgdg";
include("connection.php");
$query="update admitpatient set status1='sent' where a_id=".$_REQUEST['a_id'];
echo $res=mysql_query($query);
if($res)
{
header("location:index.php?page=viewpatient");
}
else
{
echo mysql_error();
}
?>
Include/Viewdocter.php
<?php
include("connection.php");
$query="select * from adddocter";
$result=mysql_query($query);
if($result)
{
BCA Dept., SPKM-Jetpur | 105 A Project on: Docter Appointment
Booking System
//echo "connected";
echo "<table border=1 class=register>";
echo "<tr><th colspan=11 class=tr>Doctor Details</th></tr>";
echo "<tr><th colspan=12 align=right class=tr>
<a href='index.php?page=docter_insert'><img src='image/add.png' height='30'
width='30'></a>";
echo "<tr> <th class=tr>Name</th>
<th class=tr>Age</th>
<th class=tr>Gender</th>
<th class=tr>contact</th>
<th class=tr>Qualification</th>
<th class=tr>E-Mail</th>
<th class=tr>Address</th>
<th class=tr>Type</th>
<th class=tr>Charge</th>
<th colspan=2 class=tr>Action</th>
</tr>";
echo "<tr>";
while($row=mysql_fetch_array($result))
{
echo "<td class=tr>".$row[1]."</td>";
echo "<td class=tr>".$row[2]."</td>";
echo "<td class=tr>".$row[3]."</td>";
echo "<td class=tr>".$row[4]."</td>";
echo "<td class=tr>".$row[5]."</td>";
echo "<td class=tr>".$row[6]."</td>";
echo "<td class=tr>".$row[7]."</td>";
echo "<td class=tr>".$row[8]."</td>";
<?php
include("connection.php");
$query="select * from admitpatient where status1='sent' ";
$result=mysql_query($query);
if($result)
{
//echo "connected";
echo "<table border=1 class=register>";
echo "<tr><th colspan=11 class=tr>View Patient</th></tr>";
echo "<tr> <th class=tr>name</th>
<th class=tr>city</th>
<th class=tr>age</th>
<th class=tr>gender</th>
<th class=tr>contact</th>
<th class=tr>disease</th>
<th class=tr>time</th>
<th class=tr>date</th>
</tr>";
echo "<tr>";
while($row=mysql_fetch_array($result))
{
echo "<td class=tr>".$row[1]."</td>";
echo "<td class=tr>".$row[2]."</td>";
echo "<td class=tr>".$row[3]."</td>";
echo "<td class=tr>".$row[4]."</td>";
echo "<td class=tr>".$row[5]."</td>";
echo "<td class=tr>".$row[6]."</td>";
echo "<td class=tr>".$row[7]."</td>";
echo "<td class=tr>".$row[8]."</td>";
//echo "<td class=tr>".$row[9]."</td>";
echo "</tr>";
}
echo "</table>";
}
else
{
echo mysql_query();
}
?>
Include/Manageadmin.php
<?php
BCA Dept., SPKM-Jetpur | 107 A Project on: Docter Appointment
Booking System
include ("connection.php");
$query="select * from admin";
$result=mysql_query($query);
if($result)
{
echo"<table border=1 align=center class='register'>";
echo"<tr><th colspan=5 class=tr><h1>Admin</h1></th></tr>";
echo "<tr><td colspan=4 class=tr1 align=right>
<a class=tr1 href=index.php?page=admin >addadmin</a></td></tr>";
echo"<tr><td class=tr><h2>name</h2></td><td class=tr><h2>Email_id</h2></td>
<td class=tr><h2>Contact</h2></td><td colspan=2 class=tr><h2>action</h2></td></tr>";
echo"<tr>";
while($row=mysql_fetch_array($result))
{
if($row['id']%2==0)
{
echo"<td class=tr>".$row['name']."</td>";
echo"<td class=tr>".$row['email_id']."</td>";
echo"<td class=tr>".$row['contact']."</td>";
Include/Appoinment.php
<?php
include("connection.php");
$query="select * from adddocter";
$result=mysql_query($query,$con);
echo"<form class='float-right'><table border='3' class='register'>
<th class='a'>Docter Appoinment</th>";
echo"<tr class='tr'><td><a class='a' href='index.php?page=appoinment&d_id=d_id'>
viewall</a></td></tr>";
while($row=mysql_fetch_array($result))
{
echo"<tr class='tr'><td >
<a class='a'href=index.php?page=appoinment&d_id=".$row['d_id'].">".$row['d_type']."</a></td>
</tr>";
}
echo "<input type='hidden' value='adddocter' name='page' id='page'>";
echo"</table></form>";
include("connection.php");
if(isset($_REQUEST['d_id']))
{
$tim=time('h:i:s');
$dat=date('y-m-d');
list($h,$i,$s)=explode(":",$tim);
list($y,$m,$d)=explode("-",$dat);
$z1=mktime($y,$m,$d);
$a=$z1-86400;
$query1="select * from admitpatient where date_time>$a && d_id=".$_REQUEST['d_id'];
$result1=mysql_query($query1,$con);
echo"<table border=3 class='register'>";
echo "<tr><th colspan=11 class=register>View Appoinment</th></tr>";
echo "<tr> <th class=tr>name</th>
<th class=tr>city</th>
<th class=tr>age</th>
<th class=tr>gender</th>
<th class=tr>contact</th>
<th class=tr>disease</th>
<th class=tr>time</th>
<th class=tr>date</th>
<th class=tr>Action</th>
</tr>";
while($row1=mysql_fetch_array($result1))
{
BCA Dept., SPKM-Jetpur | 109 A Project on: Docter Appointment
Booking System
echo "<tr>";
if($row1[0]%2==0)
{
echo "<td class=tr>".$row1['name']."</td>";
echo "<td class=tr>".$row1['city']."</td>";
echo "<td class=tr>".$row1['age']."</td>";
echo "<td class=tr>".$row1['gender']."</td>";
echo "<td class=tr>".$row1['contact']."</td>";
echo "<td class=tr>".$row1['disease']."</td>";
echo "<td class=tr>".$row1['time']."</td>";
echo "<td class=tr>".$row1['date']."</td>";
$status=$row1['status'];
if($status=="pending")
{
echo"<td class=tr>
<a class=a href=index.php?page=patient_detail&a_id=
".$row1['a_id'].">$status</a>"."</td>";
}
else
{
echo"<td class=a><u>$status</u></td>";
}
}
else
{
echo "<td class=tr>".$row1['name']."</td>";
echo "<td class=tr>".$row1['city']."</td>";
echo "<td class=tr>".$row1['age']."</td>";
echo "<td class=tr>".$row1['gender']."</td>";
echo "<td class=tr>".$row1['contact']."</td>";
echo "<td class=tr>".$row1['disease']."</td>";
echo "<td class=tr>".$row1['time']."</td>";
echo "<td class=tr>".$row1['date']."</td>";
$status=$row1['status'];
if($status=="pending")
{
echo"<td class=tr>
<a class=a href=index.php?page=patient_detail&
a_id=".$row1['a_id'].">$status</a>"."</td>";
}
else
{
echo"<td class=a><u>$status</u></td>";
}
}
}
echo"</tr>";
echo"</table>";
?>
Include/Patient_detail.php
<?php
include("connection.php");
$editmode=false;
if(isset($_REQUEST['a_id']))
{
$editmode=true;
$query="select * from admitpatient where a_id=$_REQUEST[a_id]";
$result=mysql_query($query);
if($result)
{
$row=mysql_fetch_array($result);
}
else
{
echo mysql_error();
}
}
?>
<html>
<head>
</head>
<body>
<form action="include/appoinment.php" method="post">
<table border=1 class="register">
<?php
if(isset($_REQUEST['a_id']))
{
echo "<input type='hidden' name='a_id' value=$_REQUEST[a_id]";
}
?>
<tr class="tr">
<th colspan=2 class="tr">Add Appoinment</th>
</tr>
<tr class="tr">
Include/Approvingpage.php
<?php
include("connection.php");
$query="update admitpatient set status='approved' where a_id=".$_REQUEST['a_id'];
echo $res=mysql_query($query);
if($res)
{
header("location:index.php?page=appoinment");
}
else
{
echo mysql_error();
1) ROLE OF TESTING:-
A project is like a load trip,some projects are simple &routine like driving
Store in broad daylight.But most project work doing are driving a truck off road
Mountains at night those project needs headlights as light the way.
2)TESTING
Once source code has been generated software must be tested to uncover many
Errors possible before to customer.
Its goal is design series of test cases that have likelihood of finding errors
Softwaretechnique provide systematic guideance for designing
Test that:-
a) Exercise internal logic of software components.
b) Exercise the I/p & O/p domains of program functional behavior & performance.
Testing phase must maximize the number of errors detected & minimize
Number of test cases.
CODING STANDARD:-
1)TESTING OBJECTIVES
Testing is process of executing program with the internet of finding an error.
A good test case is one that has high probability of finding an as yet undiscovered error.
A successful test is one that uncovered as an undiscovered error.
White Box Testing sometimes called glass box testing is test case design method
that uses control structure of procedure design to derive test cases.Using
White Box testing methods derives cases that:-
Interface Testing:-
This is concerned with both program spection and program implementation .this
type Of testing is particularly important for object oriented system.
Critearea
Input1:character or number.
Input2:character with number.
Input3:character with number and symbol.
Input3:character with spacial symbol.
Registration:-
Feedback:-
Admitpatient:-
Admin:-
Login:-
Forgetpassword:-
(8.1) Advantages:-
(8.2)Limitation:-
Web site
w3 schoool
Books
PHP