Doctor Appoinment System
Doctor Appoinment System
INTRODUCTION
Ram : 2 GB.
Speed : 1 GHZ
1.1.3.1 PHP
PHP (recursive acronym for PHP: Hypertext Pre-processor) is a widely-used open
source general-purpose scripting language that is especially suited for web development and
can be embedded into HTML. The best things in using PHP are that it is extremely simple for
a newcomer, but offers many advanced features for a professional programmer. Don't be
afraid reading the long list of PHP's features. You can jump in, in a short time, and start
writing simple scripts in a few hours. The fact that PHP was not originally designed but instead
was developed organically has led to inconsistent naming of functions and inconsistent ordering of
their parameters. In some cases, the function names were chosen to match the lower-level libraries
which PHP was "wrapping",]while in some very early versions of PHP the length of the function
names was used internally as a hash function, so names were chosen to improve the distribution of
hash values.
Easy to read
The read() function reads from an open file. The first parameter of open() contains the
name of the file to be opened and the second parameter specifies in which mode the file
should be opened. The following example also generates a message if the open() function is
unable to open the specified file The first parameter of read() contains the name of the file to
read from and the second parameter specifies the maximum number of bytes to read.
Easy to Edit
(Anyone with PHP knowledge is welcome to comment on the code. If there are issues
I haven't noticed, please let me know. Do realize that it is intended for beginners, so I didn't
want to do anything too advanced that might lead to confusion. Yes, I realize I could use
OOP, or could separate some of these out into methods, etc. etc.) Basically, just imagine that
you are in charge of a sports team, and you want to keep a list of all your player's contact
information. The code I've created could be a starting point for that (it only includes fields for
their first name/last name, but could obviously could be expanded to use more fields). How to
create a system that allows a user to add/edit/remove data in a database seems to be a
commonly asked topic, so I may adapt this into an actual tutorial at some point in the future.
More control
do-while loops are very similar to while loops, except the truth expression is checked at the
end of each iteration instead of in the beginning. The main difference from
regular while loops is that the first iteration of a do-while loop is guaranteed to run (the truth
expression is only checked at the end of the iteration), whereas it may not necessarily run
with a regular while loop (the truth expression is checked at the beginning of each iteration, if
it evaluates to FALSE right from the beginning, the loop execution would end immediately).
Better Performance
PHP is a complex language that has suffered years of twists, bends, stretches, and hacks. It’s
highly inconsistent and sometimes buggy. Each version has its own unique features, warts, and quirks,
and it’s hard to keep track of what version has what problems. It’s easy to see why it gets as much
hate as it does sometimes.
Despite that, it’s the most popular language on the web today. Because of its long history,
you’ll find lots of tutorials on how to do basic things like password hashing and database access. The
problem is that out of five tutorials, you have a good chance of finding five totally different ways of
doing something. Which way is the “right” way? Do any of the other ways have subtle bugs or It’s
really hard to find out, and you’ll be bouncing around the internet trying to pin down the right answer.
That’s also one of the reasons why new PHP programmers are so frequently blamed for ugly,
outdated, or insecure code. They can’t help it if the first Google result was a four-year-old article
teaching a five-year-old method This document tries to address that. It’s an attempt to compile a set of
basic instructions for what can be considered best practices for common and confusing issues and
tasks in PHP. If a low-level task has multiple and confusing approaches in PHP, it belongs here.
In older versions of PHP, every time a script was executed it would have to be compiled from
scratch, even if it had been compiled before. Opcode caches were additional software that saved
previously compiled versions of PHP, speeding things up a bit. There were various flavours of caches
you could choose from.
MYSQL
Oracle MySQL Cloud Service delivers a secure, cost-effective and enterprise-grade
MySQL database service. Built on MySQL Enterprise Edition and powered by the Oracle
Cloud, it provides a simple, automated, integrated and enterprise ready MySQL cloud
service, enabling organizations to increase business agility and reduce costs.
My SQL Inno DB Cluster tightly integrates My SQL Server with Group Replication,
My SQL Router, and My SQL Shell, so you don't have to rely on external tools, scripts or
other components. Plus, it leverages proven My SQL features including InnoDB, GTIDs,
binary logs, multi-threaded slave execution, multi-source replication and Performance
Schema. A MySQL InnoDB Cluster can be set up in less than five minutes and managed
using the scriptable AdminAPI in the MySQL Shell.
Group Replication provides native high availability with built-in group membership
management, data consistency guarantees, conflict detection and handling, node failure
detection and database failover related operations, all without the need for manual
intervention or custom tooling.
Client/server architecture is a computing model in which the server hosts, delivers and
manages most of the resources and services to be consumed by the client. This type of
architecture has one or more client computers connected to a central server over a network or
internet connection. This system shares computing resources. Client/server architecture is
also known as a networking computing model or client/server network because all the
requests and services are delivered over a network. The client–server model is a distributed
application structure that partitions tasks or workloads between the providers of a resource or
service, called servers, and service requesters, called clients Often clients and servers
communicate over a computer network on separate hardware, but both client and server may
reside in the same system. A server host runs one or more server programs which share their
resources with clients. A client does not share any of its resources, but requests a server's
content or service function. Clients therefore initiate communication sessions with servers
.which await incoming requests. Examples of computer applications that use the client–server
model are Email, network printing, and the World Wide Web.
2. SYSTEM STUDY
2.1.1 DRAWBACKS
2.2.1 FEATURES
3.5SYSTEM DEVELOPMENT
5. CONCUSION
APPENDICES
0 level Dfd
Time Slot
Management
Doctor Appointment
Management Management
Doctor
Appointment
System
Appointment Report
Appointment Management
Doctor
appointment Patient Report
Patient management System
Forget
Pass word
Manage Patient Detail
Check
Modules
Crededinti
Appointment Detail
als
Booking Detail
Send email
To user
Medicine detail
Admin Home
<?php
include('connection.php');
session_start();?>
href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" />
<script type="text/javascript">
$(document).ready(function(){
$("#date").datepicker();
});
</script>
<?php
extract($_POST);
$servername = "localhost";
$username = "root";
$password = "root";
$dbname = "online_notice";
// Create connection
if(isset($save)) {
if($e=="" || $p=="") {
Else {
$pass=$p;
$r=mysqli_num_rows($sql);
if($r==true) {
$_SESSION['user']=$e;
header('location:User_Home.php'); }
else {
} } } ?>
</tr>
</table>
</form>
Appointment act
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<?php
include('connection.php');
session_start();?>
<body>
<?php
$Aid = $_POST['Aid'];
$Category = $_POST['category'];
$doctor = $_POST['doctor'];
$email =$_POST['email'];
$yy =$_POST['yy'];
$mm =$_POST['mm'];
$dd =$_POST['dd'];
$time =$_POST['Time'];
$user=$_SESSION['user'];
echo $Aid;
echo $Category;
echo $doctor;
echo $time;
echo $yy;
echo $mm;
echo $dd;
$dob=$yy.'-'.$mm.'-'.$dd;
echo $dob;
$servername = "localhost";
$username = "root";
$password = "root";
$dbname = "doctor";
// Create connection
// Check connection
if ($conn->connect_error)
if (mysqli_num_rows($query) != 0)
echo "<script>
window.location.href='Patient_Home.php';
</script>";
else{
echo $sql;
echo "<script>
window.location.href='Patient_Home.php';
</script>";
} else {
$conn->close();
?>
</body>
</html>
Book appointment
<?php
include('connection.php');
session_start();?>
href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" />
<script type="text/javascript">
$(document).ready(function(){
$("#date").datepicker();
});
</script>
<?php
extract($_POST);
$servername = "localhost";
$username = "root";
$password = "root";
$dbname = "online_notice";
// Create connection
if(isset($save)) {
if($e=="" || $p=="") {
Else {
$pass=$p;
$r=mysqli_num_rows($sql);
if($r==true) {
$_SESSION['user']=$e;
header('location:User_Home.php'); }
else {
} } } ?>
</tr>
</table>
</td></tr>
<select name="Category">
<option value="GeneralPhysician">GeneralPhysician</option>
<option value="Bone">Bone</option>
<option value="Heart">Heart</option>
<option value="Dentist">Dentist</option>
<option value="Kidney">Kidney</option>
<option value="Nuralagist">Nuralagist</option>
<option value="Cardiologist">Cardiologist</option>
</select>
</td></tr>
<select name="doctor">
<option value="Abinaya">Abinaya</option>
<option value="Nithya">Nithya</option>
<option value="Divya">Divya</option>
<option value="Senthil">Senthil</option>
<option value="Priya">Priya</option>
<option value="Mahalakshmi">Mahalakshmi</option>
<option value="Saranya">Saranya</option>
<option value="Prabha">Prabha</option>
</select>
</td></tr>
<tr>
<Td>
<option value="">2017</option>
<?php
for($i=2017;$i<=2020;$i++) {
<option value="">4</option>
<?php
for($i=1;$i<=12;$i++) {
<option value="">10</option>
<?php
for($i=1;$i<=31;$i++) {
</select> </td></tr>
</select>
</td></tr>
</table>
<?php
?>
</form>
View appointment
<?php
include('connection.php');
session_start();?>
href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" />
<script type="text/javascript">
$(document).ready(function(){
$("#date").datepicker();
});
</script>
<?php
extract($_POST);
$servername = "localhost";
$username = "root";
$password = "root";
$dbname = "online_notice";
// Create connection
if(isset($save)) {
if($e=="" || $p=="") {
Else {
$pass=$p;
$r=mysqli_num_rows($sql);
if($r==true) {
$_SESSION['user']=$e;
header('location:User_Home.php'); }
else {
} } } ?>
</tr>
</table>
<tr>
<td width="63"> </td>
<td width="60"> </td>
</tr>
<?php
$servername = "localhost";
$username = "root";
$password = "root";
$dbname = "doctor";
// Create connection
// Check connection
if ($conn->connect_error) {
$user=$_SESSION['user'];
$result = $conn->query($sql);
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
echo "<tr><td> ".$row["email"]."</td>" ;
} else {
$conn->close();
?>
</table>
</form>
D.SAMPLE INPUT
Input desing
Login form