Health PHP Document
Health PHP Document
ABSTRACT:
The Health Prediction system is an end user support and online consultation
project. Here we propose a system that allows users to get instant guidance on their health
issues through an intelligent health care system online. The system is fed with various
symptoms and the disease/illness associated with those systems. The system allows user
to share their symptoms and issues. It then processes users symptoms to check for various
illness that could be associated with it. Here we use some intelligent data mining
techniques to guess the most accurate illness that could be associated with patient’s
symptoms. If the system is not able to provide suitable results, it urges users to go for
blood test, x-ray, citi scan or which ever report it feels user’s symptoms are associated
with, so next time user may be able to login and upload an image of those reports. The
system also has a doctor login, these uploaded images are now sent to respective doctor
along with patient contact details. The doctors may now contact the patient for further
process.
INTRODUCTION:
It might have happened so many times that we or someone ours need doctors help
immediately, but they are not available due to some reason. The Health Prediction system
is an end user support and online consultation project for correct prediction of illness
based on patients input. Here propose system allows users to get instant guidance on their
health issues through an intelligent health care system online. The smart health prediction
system is fed with various symptoms and the disease/illness associated with those
systems. The system allows user to share their symptoms and issues then system
processes patients symptoms to check for various illness that could be associated with it.
Here some intelligent data mining techniques to guess the most accurate illness that could
be associated with patient’s symptoms. If the system is unable to provide suitable results,
it informs the user about the type of disease or disorder it feels user’s symptoms are
associated with. If patients symptoms do not exactly match any disease in our database, is
shows the diseases user could probably have judging by his/her symptoms. Disease
prediction using patient input symptoms history and health data by applying data mining
and machine learning techniques is ongoing struggle for the past decades. Necessity:
Sometimes we need the help of doctors immediately, but due to some reasons they
issues instantly through online health care system. The System is helpful in emergency of
patients by suggesting the doctors and immediate prescriptions on their disease. patient
can get help from anywhere at any time. In medical fields, the foreign students have
solved some medical issues that are laborious to be settled in classic statistics by
SOFTWARE SPECIFICATION
Database : Mysql5.0
HARDWARE SPECIFICATION
RAM : 2 GB
Advantages:
User can talk about their illness and get instant diagnosis.
Disadvantages:
The system is not fully automated, it needs doctors for full diagnosis.
Application:
This system can be used by all patients or their family members who need help in
emergency.
OBJECTIVES:
users or patients input symptoms and after accurate prediction suggest the
Patient can search for doctor’s help at any point of time and can talk about
their illness or health issues and get instant diagnosis. doctors may get more
patients online.
PROPOSED SYSTEM:
This system supports an end user and online consultation. Here propose a
problems through an astute social intelligent health care system online. The
associated with those systems. Also the system allows user to share their
symptoms and issues. Data Mining is a field of research has already well
the most demanded area of research in health care sector. The basic idea
behind the project is to propose a system that allows users to get instant
guidance on their health issues. This smart health prediction system is fed
systems. This system allows user/patients to share their symptoms and issues
It then processes patients symptoms to check for various illnesses and based
associated with and also suggest the doctor to whom he or she can contact
from large data. This encompasses a number of technical approaches like clustering,
Training builds a classification model on the basis of training data collected for
mining; they signify facts at a high level of abstraction. The accuracy of classification
model based on the degree to which classifying rules are true which is estimated by
test data. Prediction: Prediction in data mining is to identify data points purely on the
description of another related data value. It is not necessarily related to future events
but the used variables are unknown. Prediction in data mining is to identify data points
Registration Patients will need to register themselves first with their username and
password in order to use the system. 5.2 Patient Login Patients will need to log in to
their system with their username and password. 5.3 Live Chat Patient can use the live
chat functionality for any kind of clarifications or helps which will be required for the
application. 5.4 Viewing Diseases/Symptoms Details All the symptoms and past
diseases will be listed if any for the clarification in prediction. 5.5 Selection of Disease
Selection Patient can select the diseases, symptoms and can provide few personal
details which is listed on the application. 5.6 Diseases Prediction Based on the patient
diseases, symptoms and personal details like height and weights, decisions will be
made. 5.7 Results Reports will be generated based on all analysis made previously and
then BMI and Report will be shown on the final stage of application. 5.8 Logout
FEASIBILITY STUDY:
The feasibility of the project is analysed in this phase and business proposal is
put forth with a very general plan for the project and some cost estimates. During system analysis the
feasibility study of the proposed system is to be carried out. This is to ensure that the proposed system is
not a burden to the company. For feasibility analysis, some understanding of the major requirements for
the system is essential.
ECONOMIC FEASIBILITY:
This study is carried out to check the economic impact will have on the system
will have on the organization. The amount of fund that the company can pour into the research and
development of the system is limited. The expenditures must be justified. Thus the developed system as
well within the budget and this was achieved because most of the technologies used are freely available.
Only the customised products have to be purchased.
TECHNICAL FEASIBILITY:
This study is carried out to check the technical feasibility, that is the technical requirements of the
system. Any system developed must not have a high demand on the availableavailable technical
resources. This will lead to high demands being placed on the client. The developed system must have a
modest requirement, as only minimal or null changes for the implementing this system.
OPERATIONAL FEASIBILITY:
The aspect of study is to check the level of acceptance of the system by the user. This includes the
process of training the user to use the system efficiently. The user must not feel threatened by the
system, instead must accept it as a necessity. The level of acceptance by the users solely depends on
the methods that are employed to educate the user about the system and to make him familiar with it.
His level of confidence must be raised so that he is also able to make some constructive criticism,
which is welcomed, as he is the final user of the system.
USECASE DIAGRAM:
DFD LEVEL 0 DIAGRAM:
Technologies :
PHP.
MYSQL
JAVASCRIPT
HTML
CSS
PHP
PHP is a popular general-purpose scripting language that is especially suited to
web development. It was originally created by Rasmus Lerdorf in 1994. PHP originally
stood for Personal Home Page,but it now stands for the recursive initialism PHP:
Hypertext Preprocessor
to create dynamic web page content.It can also be used for command-line
web servers and operating systems, and can be used with many relational
and the PHP Group provides the complete source code for users to build,
Advantage of PHP
If you are familiar with other server side language like ASP.NET or JSP you might be
wondering what makes PHP so special, or so different from these competing alternatives
2. Portability(Platform Independent)
3. Ease Of Use
4. Open Source
6. Community Support
________________________________________
Performance
Scripts written in PHP executives faster than those written in other scripting language,
The PHP 5.0 engine was completely redesigned with an optimized memory manager to
In addition, third party accelerators are available to further improve performance and
response time.
________________________________________
Portability
PHP is available for UNIX, MICROSOFT WINDOWS, MAC OS, and OS/2. PHP
________________________________________
Ease Of Use
“Simplicity is the ultimate sophistication”, Said Leonardo da Vinci, and by that measure,
Its syntax is clear and consistent, and it comes with exhaustive documentation for the
This significantly reduces the learning curve for both novice and experienced
programmers, and it’s one of the reasons that PHP is favored as a rapid prototyping tool
________________________________________
Open Source
volunteers who make its source code freely available on the Web, and it may be used
The open-source nature of the code further means that any developer, anywhere , can
inspect the code tree, spit errors, and suggest possible fixes, this produces a stable, robust
product wherein bugs, once discovered, are rapidly resolved – sometimes within a few
hours of discovery !.
________________________________________
One of PHP’s Strengths has historically been its support for a wide range of different
PHP 5.3 Supports more than fifteen different database engines, and it includes a common
XML support makes it easy to read and write XML documents though they were native
PHP data structures, access XML node collections using Xpath, and transform XML into
________________________________________
Community Support
One of the nice things about a community-supported language like PHP is the access it
offers to the creativity and imagination of hundreds of developers across the world.
Within the PHP community, the fruits of this creativity may be found in PEAR, the PHP
Extension and Application Repository and PECL, the PHP Extension Community
Library, which contains hundreds of ready-, made widgets and extensions that developers
MySQL
varies from host to host, however we will end up with a database name,
the name, select the number of fields and click the ‘go’ button. we will
then be taken to a setup screen where you must create the fields for the
Apache
The Apache HTTP Server is a web server software notable for playing a
key role in the initial growth of the World Wide Web. In 2009 it became
the first web server software to surpass the 100 million web site
April 1996 Apache has been the most popular HTTP server software in
XAMPP
small size, and portability make it the ideal tool for students developing
free download in two specific packages: full and lite. While the full
Lite contains the necessary technologies that meet the Ontario Skills
SQLite.
download and use for various web development tasks. All XAMPP
navigate and find the Windows version of XAMPP and download the
extract its contents into the root path of a hard disk or USB drive. For
example, the extract path for a local Windows installation would simply
root of your installation disk. In order to test that everything has been
installed correctly, first start the Apache HTTP Server by navigating to the
below.
XAMPP splash screen.
In order to stop all Apache processes we do not close the running terminal
application, but instead run another batch file in the xampplite directory called
apache_stop.bat.
Now that we have run and tested Apache and PHP, the next step is running
MySQL and creating a database and table which will hold information to be
used by our website. In order to start MySQL, navigate to the xampp directory
and table, and enter test data. Before testing phpMyAdmin, make sure that both
Apache and MySQL are running by opening their respective batch files:
The first step with phpMyAdmin running is creating a new database.We create a
successful execution of the sql querry creates a database ‘student’ with two
values in the admin table.The screenshot below shows the successful execution
Management System” .
PHP Comments
Comments in PHP
Single line comment used for short explanations. Declaration of Single line
Or backslash(//)
<?php
# This is the single line comment
?>
In the above Example. *First and second line comments begin with hash(#). *The
If we check the output of the given example. Browser show blank page. Because
<?php
echo $str;
?>
Output welcome
In third line we check the output.It shows Welcome Only. Because the second line
string("student") as a declaration.
2. Multi-lines comments :
Multi lines comments used to comment multiple lines. Here we can give
<?php
/*
*/
?>
The all lines which is define in php evironment are Multiline comments. it is non-
<?php
/*
$str = "welcome ";
*/
?>
PHP Variables
PHP Variables
Variables in PHP starts with a dollar($) sign, followed by the name of the variable.
The variable name must begin with a letter or the underscore character.
A variable name can only contain alpha-numeric characters and underscores (A-z,
0-9, and _ )
Assigning a value to a variable in PHP is quite east: use the equality(=) symbol,
This assign value on the right side of the equation to the variable on the left.
Eg i
<?php
$myCar = "Honda";
echo $myCar;
?>
Output Honda
PHP super global variable is used to access global variables from anywhere in the
PHP script. PHP Super global variables is accessible inside the same page that
defines it, as well as outside the page. while local variable's scope is within the
1) $_GET["FormElementName"]
information sent from a form with the method='get' is visible to everyone(it display
3) $_REQUEST["FormElementName"]
This can be used to collect data with both post and get method.
4) $_FILES["FormElementName"]
$_FILES["FormElementName"]["ArrayIndex"]
: Such as File Name, File Type, File Size, File temporary name.
5) $_SESSION["VariableName"]
A session variable is used to store information about a single user, and are available
6) $_COOKIE["VariableName"]
A cookie is used to identify a user. cookie is a small file that the server embedded
on user computer.
7) $_SERVER["ConstantName"]
Data types specify the size and type of values that can be stored.Variable does not
need to be declared ITS DATA TYPE adding a value to it.PHP is a Loosely Typed
Language so here no need to define data type.To check only data type use
gettype( ) function.
Scalar(predefined)
Compound(user-defined)
Special type
Integer
Float/double
String
Boolean
Integer means numeric data types. A whole number with no fractional component.
two billion is the usual value (that's 32 bits signed).64-bit platforms usually have a
maximum value of about 9E18, except for Windows, which is always 32 bit
<?php
$num=100;
var_dump($num);
?>
Output int(100)
In the above example $num hold value=100. pass this variable with echo statement
<?php
$num=100.0;
var_dump($num);
?>
Output float(100)
$num hold value=100.0. pass $num inside echo statement to display the output.
String Data type
Non numeric data type String can hold letters,numbers and special characters.
<?php
$str="Welcome user";
$str1='how r you?';
$str2="@";
var_dump($str);
var_dump($str1);
var_dump($str2);
?>
Output string(12) "Welcome user" string(10) "how r you?" string(1) "@"
In the above example We create three variable to hold three string values. To
display the output pass all three variables with echo output will display.
Boolean are the simplest data type.Like a switch that has only two states ON
<?php
$true=true;
$false=false;
var_dump($true,$false);
?>
value=false. Now check the datatype using var_dump( ) function. Output will in
Array
Object
<?php
$arr=array(10,20,30,40,50);
var_dump($arr);
?>
Output array(5) { [0]=> int(10) [1]=> int(20) [2]=> int(30) [3]=> int(40) [4]=>
int(50) }
In the above example Variable( $arr) hold values an array . Now we want to print
the first element of an array. Then we pass variable($arr) name with index
value[0], fetch the first element corresponding to the index value. Output will 10
<?php
class Demo
}
$obj= new Demo();
//$obj->show();
//$obj->show();
var_dump($obj);
?>
Null
Resource
<?php
$blank=null;
var_dump($blank);
?>
Output NULL
The special resource type is not an actual data type. It is the storing of a reference
<?php
$con = mysqli_connect("localhost","root","","users");
?>
The function will return a resource type data to be stored into $con variable.
Some Predefine functions to Check data type
Validation controls
User controls
Mobile controls
DATA BINDING
The system can bind Web Forms control properties to any data in a data store.
This so-called data binding gives us nearly complete control over how data moves
PAGE CLASS
(like visual elements and business logic). So all (visual and code) ele-
controls, let the PHP engine create an instance on the server, and now
tem additionally assigns an ID, the system can reference the control in our
code.
For example, the system can use the HTMLAnchor control to program against
the HTML <a> tag to dynamically generate the H Ref values, or use
tent.
PHP FORM HANDLING
PHP form is used to take input from users. in PHP if you want to take input from
keyboard and display the output according to input, in that case you have to use
html form. html form's have a property : form method in which you have to set
business logic (PHP script) from Presentation layer (HTML script) then use action
Property of Form . It reduce the complexity of bulk of codes. Because All scripts
are separately define on their own page. In the previous Form Post method PHP
script and HTML script were define on the same page ,so it show the design part
with the output of program. But using action property HTML script define on a
VALIDATION CONTROLS
Another group of server controls are validation controls. These can be used
to check the user’s entries. Validation can be processed on the client and on the
server.
Validation on the client side can be performed using a client script. In that
PHP can validate form input server side, submitted by the user using HTML forms.
You need to check a few things:
Numbers only
Empty values
Input length
Email address
MYSQL INTRODUCTION
Structured Query Language. The application is used for a wide range of purposes,
common use for mySQL however, is for the purpose of a web database.
SQL statements are used to perform tasks such as update data on a database,
systems that the SQL are: Oracle, Sybase, Microsoft SQL Server, Access, Ingress,
etc. Although most database systems use SQL, most of them also have their own
additional proprietary extensions that are usually only used on their system.
The standard SQL commands such as “Select”, “Insert”, “Update”, ”Delete”,
”Create”, and “Drop” can be used to accomplish almost everything that one needs
to do with a database. This tutorial will provide you with the instruction on the
basics of each of these commands as well as allow you to put them to practice
TABLE BASICS
A relational database system contains one of more objects called tables. The
data or information for the database is stored in these tables. Tables are uniquely
identified by their names and are comprised of columns and rows. Columns
contain the column name, data type, and any other attributes for the column. Rows
SELECTING DATA
The select statement is used to query the database and relatives selected data
that match the criteria that you specify. Here is the format of a simple select
statement.
will be returned in the results. The system can select as many column names that
you’d like, or you can use a “*” to select all columns. The table name that follows
the keyword from specifies the table that will be queried to retrieve the desired
results.
will be returned or displayed, based on the criteria described after the keyword
where.
= Equal
LIKE
The LIKE pattern matching operator can also be used in the conditional
selection of the where clause. Like is a very powerful operator that allows you to
select only rows that are “Like” what you specify. The percent sign “%” can be
used as a wild card to match any possible character that might appear before or
For example
From empinfo
This SQL statement will match any first names that start with ‘Er’. Strings
This statement will match any last names that end in‘s’.
This will only select rows where the first name equals ‘Erie’ exactly.
CREATING TABLES
The create tables statement is used to create a new table. Here is the format
CONSTRAINTS
[Constraints],
“column2” “data type”
[Constraints],
[Constraints],
[ ] = optional)
To create a new table, enter the keywords create table followed by the table
followed by the data type for that column, followed by any optional constraints,
any followed by a closing parenthesis before the beginning table and a closing
parenthesis after the end of the last column definition. Make sure you separate
each column definition with a comma. All SQL statements should end with a “;”.
The table and column names must start with a letter and can be followed by
Do not use any SQL reserved keywords as names for tables or column names (such
as “select”, “create”, “insert”, etc).Data types specify what the types of data can be
for that particular column. If a column called “Last Name” is to be used to hold
in parenthesis.
specified in parenthesis.
What are constraints? When tables are created, it is common for one
basically a rule associated with a column that the data entered into that column
must follow. For example, a ‘unique” constraints specifies that no two records can
have the same value in a particular column. They must all be unique.
The other two most particular constraints are “not null” which specifies that
a column can’t be left blank, and “primary key”. A “primary key” constraint
defines a unique identification of each record (or row) in a table. Constraints can
be entered in this SQL interpreter, however, they are not supported in this Intro to
SQL tutorial & interpreter. They will be covered and supported in the future
The insert statement is used to insert or add a row of data into the table. To
insert records into a table, enter the key words insert into followed by the table
values, followed by the list of values enclosed in parenthesis. The values that you
enter will be held in the rows and they will match up with the column names that
you specify. Strings should be enclosed in single quotes, and numbers should not.
Insert into “table name”
UPDATING RECORDS
DELETING RECORDS
The delete statement is used to delete records or rows from the table.
OPERATOR “value”
[and/or “column”
OPERATOR “value”]
the table name, followed by the where clause which contains the conditions to
delete. If you leave off the where clause, all records will be deleted.
DROP A TABLE
The drop table command is used to delete a table and all rows in the table.
To delete an entire table including all of its rows, issue the drop table command
followed by the table name. Drop table is different from deleting all of the records
in the table. Deleting all of the records in the table leaves the table including
column and constraint information. Dropping the table removes the table
TABLE JOINS
All of the queries up until this point have been useful with the exception of
one major limitation- that is, you’ve been selecting from only one table are a time
with your SELECT statement. It is time to introduce you to one of the most
Joins allow you to link data from two or more tables together into a single
query result – from one single SELECT statement. A “join” can be recognized in a
SQL SELECT statement if it has more than one table after the FROM keyword.
CONCLUSION:
In this Paper, idea behind the proposed system is to easily predict the disease
based on patients symptoms and provide correct prescription online and the patient
also get informed about specialist/doctors if they need. Some of the time the
circumstance happens when you need the specialist's assistance quickly, yet they
are not accessible because of some reason in that case proposed system will be
beneficial.
Reference:
http://ieeexplore.ieee.org/xpl/articleDetails.jsp?
arnumber=5228051&newsearch=true&queryText=health%20data%20min-
ing
http://ieeexplore.ieee.org/xpl/articleDetails.jsp?
arnumber=7344518&newsearch=true&queryText=health%20data%20min-
ing
Dr.B.Srinivasan, K.Pavya, “A study on data mining prediction techniques in
ence & Advanced Technology, vol. 2, no. 3, pp. 470– 478, 2015.