PHP Projects

Hospital Management System Using PHP With Source Code

Project: Hospital Management System

– To Download It For Free (Scroll Down)

Features :

  1. Login Systems (Patients/Admin/Doctor)
  2. Book Appointment
  3. Manage Patients, Doctors
  4. Add Doctor Specialization

Here, User has to Login as Patient, Doctor OR Admin to use the system. From Patient’s login, a user can Book an appointment with any doctor and check appointment history. From Doctor’s login, a user can view Appointments. From Admin’s login, a user has access to each and everything. Admin can manage doctors, patients, Add Doctor specialization, and check Doctor’s and Patient’s session logs. This system makes easy management of hospital for the patients as well as doctors.The design of this project is pretty simple and the user won’t find it difficult to understand, use and navigate.

How To Run?

You’ll need XAMP Server or WAMP Server. Put the file inside “c:/wamp/www/” or “c:/xampp/htdocs/”. Go To “localhost/phpmyadmin” in any browser and create Database (name according to SQL file).In that Database, Import the SQL file and finally go to URL: “http://localhost/file_name/phpfilename
Don’t Forget To create a database and import SQL file to run.

DOWNLOAD HOSPITAL MANAGEMENT SYSTEM USING PHP WITH SOURCE CODE : CLICK THE BUTTON BELOW

Download

121
Leave a Reply

avatar
46 Comment threads
75 Thread replies
4 Followers
 
Most reacted comment
Hottest comment thread
53 Comment authors
OliviaFabian Roscliffordkathleen marceloom samanta Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
magoiga
Guest

what is the username and password for the system?

Naseeb Bajracharya
Guest

ADMIN
Username : admin
Password :[email protected]

Patient
Username : [email protected]
Password : [email protected]

Doctor
Username : [email protected]
Password : [email protected]

We had mentioned all these Login details in “Readme.txt” file. You should have opened it!!

socdaal
Guest

send plasce source code HOSPITAL MANAGEMENT SYSTEM
[email protected]

Naseeb Bajracharya
Guest

download it!!
There’s a green download button

Arvi Ingal
Guest
Arvi Ingal

Hi.. can i ask you how to fix the config.php?

Naseeb Bajracharya
Guest

open config.php using any text editor. There you can see MySQL hostname, username, password. You just have to replace those with your own hostname, username, and password!

Saba
Guest
Saba

Doctor login r admin login ka password r username incorrect bta rahy

Naseeb Bajracharya
Guest

sorry, what language are you speaking? what are you trying to say? doctor login r admin login password username incorrect….? You mean about login details or what?

unknown
Guest
unknown

R u kidding

tsi
Member
tsi

just doctor username :[email protected], password:[email protected] is working the rest aint opening

tsi
Member
tsi

I did but is not working

hassan
Guest
hassan

There is an error in the database I am not able to import it.

Naseeb Bajracharya
Guest

we have checked it twice and it works perfect, there’s no such error in the current database. Can you please mail your Error Screenshot at [email protected]
we’ll see it!

Jalil
Guest
Jalil

Should i make the database to the myphp local host?

Naseeb Bajracharya
Guest

yeah. .and name it according to the database sql file

xtatic studios
Guest
xtatic studios

great everything works fine guys… am i free to make it even more epic by developing it further?

Naseeb Bajracharya
Guest

yeah. .you can!! it free to use for educational purpose

Renz
Guest
Renz

Tnx bro

Arnav Kumar
Guest
Arnav Kumar

I m encountering d error of could not connect database.. help me

Naseeb Bajracharya
Guest

we have provided the database file. you should create a database naming (according to SQL file) and import that database. without creating a database the project won’t run!!

Farjana Islam
Guest
Farjana Islam

when i click patient , doctor or admin link then the system says – could not select database….what can i do ? I have import the sql file

Naseeb Bajracharya
Guest

what did you name Database?

Farjana Islam
Guest
Farjana Islam

yap i do this.

Farjana Islam
Guest
Farjana Islam

hms.sql but still it is not working

Naseeb Bajracharya
Guest

no. the database name should be “hms” not hms.sql

Farjana Islam
Guest
Farjana Islam

there is an problem arise when i add doctor in a admin panel after submitting all the field and another problem is when i sign in as a patient and took my appointment then time selection is not working properly thus unable to take appointment

Naseeb Bajracharya
Guest

everything works perfectly I rechecked it!
after adding a doctor from Admin panel a window alert appears, nothing displays but the data is recorded. You can simply go to URL localhost/hospital and Login from Patient. Then book an appointment. After clicking on Time you just enter numbers and set AM/PM.

Farjana Islam
Guest
Farjana Islam

okay…

Ankit
Guest
Ankit

can u plzz help me…to see patient login page…

Naseeb Bajracharya
Guest

I have provided a solution on your other comments do check it!

namono philis
Guest
namono philis

why is it that my doctor login is linked and i have import database to php

Farjana Islam
Guest
Farjana Islam

hms.sql

Naseeb Bajracharya
Guest

no. the database name should be “hms” not hms.sql

Farjana Islam
Guest
Farjana Islam

yes i just talk about imported file formate in xampp…can u check the project again plz.. i think connect db – file is not here

Naseeb Bajracharya
Guest

you said you name the database as “hms.sql” right??
actually, the database name should be “hms” and then you have to import that “hms.sql” file on to that database.

Farjana Islam
Guest
Farjana Islam

thanks….now it is working

Vivek Mishra
Guest
Vivek Mishra

Sir please help. I have created the database with hms name. But when I go to patient login I am not able to see the login screen or login into dashboard.

Naseeb Bajracharya
Guest

then what does the system displays??
go to URL: http://localhost/hospital/hms/user-login.php
check if it works or not!!

Ankit
Guest
Ankit

i am still not able to see login screen…system display is blank…tell me what should i do ??

Naseeb Bajracharya
Guest

configure in config.php, insert your own Localhost’s username, password
and if it still doesn’t work then you must be using PHP 7, try installing PHP 5.6.3

Ankit
Guest
Ankit

its not working sir…

Naseeb Bajracharya
Guest

I have provided a solution on your other comments do check it!

yefrizal
Guest
yefrizal

Yup, i am facing the same thingg too…

Naseeb Bajracharya
Guest

go to URL: http://localhost/hospital/hms/user-login.php
check if it displays or not!!

yefrizal
Guest
yefrizal

yes..it is because of the PHP version…hehee..tq

Xyz
Guest
Xyz

You are a Bolod.

Ankit
Guest
Ankit

hii…when i run my doctor file in a localhost…i get an error called FATAL ERROR…those error i mentioned below… can u please help me to solve this error…

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\Hospital\hospital\hms\doctor\include\config.php:6 Stack trace: #0 C:\xampp\htdocs\Hospital\hospital\hms\doctor\index.php(3): include() #1 {main} thrown in C:\xampp\htdocs\Hospital\hospital\hms\doctor\include\config.php on line 6

Naseeb Bajracharya
Guest

configure in config.php, insert your own Localhost’s username, password
and if it still doesn’t work then you must be using PHP 7, try installing PHP 5.6.3

teknopen
Guest
teknopen

the datepicker in appointment form does not appear calendar

Naseeb Bajracharya
Guest

date picker appears, just check at the side there’s an up and down button manage date from there!

teknopen
Guest
teknopen

Sorry my bad, i am developing using safari browser, it doesn’t appear, but when i use chrome or firefox…it is so perfect..

Naseeb Bajracharya
Guest

do use Mozilla or chrome, it will work perfectly 🙂

teknopen
Guest
teknopen

This apps is really help me and it is greatly free…

Can u help me on this:
1: how can patient, doctor and admin upload their picture
2. how can i make the profile picture appear based on the user itself

Tq

Naseeb Bajracharya
Guest

currently, there are no such features to add profile pictures. but we might update that feature in upcoming days

Teknopen
Guest
Teknopen

Can’t wait to here te update…tqvvvvm…

Anto
Guest
Anto

This is good work, but the code is outdated, and the JS is unresponsive. I am trying to fix as best I can, there is more to be done, however, all in all good work.

Saba
Guest
Saba

Is ka doctor login r admin login is name r password sy open nahi hu rahy invalid username r password likha ata ha plz tell me about this

Naseeb Bajracharya
Guest

sorry, can’t get it. which language are you talking?

digu
Guest
digu

Ty Admin

Karamat
Guest
Karamat

when i click patient , doctor or admin link then nothing show ….what can i do ? I have import the sql file

Naseeb Bajracharya
Guest

what did you name the database?

Karamat
Guest
Karamat

i am still not able to see login screen…system display is blank…tell me what should i do ??

Naseeb Bajracharya
Guest

first, make sure about the database connections

xcasd
Guest
xcasd

add doctro are not working
in admin area -ADD DOCTOR SPECIALIZATION are not working
in patient area – datepicker are not working
php version is 5.6.3

how to fix this

Naseeb Bajracharya
Guest

We just rechecked it. Everything seems to work out fine! Add Doctor Specialization works perfectly, it gets added after submitting the name and in patient area, while booking an appointment, just click on the date format. The date picker will display.

Naseeb Bajracharya
Guest

You can send your screenshot at [email protected]

sahana
Guest
sahana

i can’t get the source code of hospital management system

Naseeb Bajracharya
Guest

There’s a Green Download Button below h2 text “Download Hospital Management System . . . . “

sahana
Guest
sahana

its good

Olive
Guest
Olive

I really like this project hospital management system, I have followed all the instruction given in “read me first” but when I click the links in patient and admin login, I get a blank page and for the link in doctor I get an error which I don’t know how to describe.
please any help.
thank you

Naseeb Bajracharya
Guest

The database name should be “hms” not hms.sql.
Sorry for this mistake in “README.txt” file!

After setting the database connection, if it displays a blank page then configure in config.php, insert your own Localhost’s username, password
and if it still doesn’t work then you must be using PHP 7, try installing PHP 5.6.3

supriya
Guest
supriya

Database is getting connected but the login pages is not fetching the username and password from the database . getting invalid username and password

Naseeb Bajracharya
Guest

The database name should be “hms” not hms.sql.
Sorry for this mistake in “README.txt” file!

supriya
Guest
supriya

Database is getting connected but the login pages are not fetching username and password from the database,getting invalid username and password.

Naseeb Bajracharya
Guest

The database name should be “hms” not hms.sql.
Sorry for this mistake in “README.txt” file!

rounak
Guest
rounak

once i have created the database in php net what to do next

Naseeb Bajracharya
Guest

After creating database, import the SQL file which we have provided and then go to localhost/hospital

cet
Guest
cet

the data is accessible from database but the data that i am inserting into database is not getting updated what to do????

kanaka
Guest
kanaka

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\hospital\hospital\hms\doctor\include\config.php:6 Stack trace: #0 C:\xampp\htdocs\hospital\hospital\hms\doctor\index.php(3): include() #1 {main} thrown in C:\xampp\htdocs\hospital\hospital\hms\doctor\include\config.php on line 6

iam getting this error in this code can u please help me

odin
Guest
odin

mysql_connect() has been removed in PHP 7.
You can use mysqli_connect()
or simply switch to PHP 5.6.3

quan
Guest

help the home page is working but the other child pages are not

Shivani Kotian
Guest
Shivani Kotian

After typing in the URL http://localhost/hospital/hms/user-login.php nothing shows up, please help

jun
Guest
jun

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /storage/ssd5/433/6406433/public_html/hms/doctor/include/config.php:6 Stack trace: #0 /storage/ssd5/433/6406433/public_html/hms/doctor/index.php(3): include() #1 {main} thrown in /storage/ssd5/433/6406433/public_html/hms/doctor/include/config.php on line 6

Soso
Guest

how many tables in database ??

Sha
Guest
Sha

Hi..i need your help.my appointment history not working very well.After make a booking appointment the details not appear in history.i already follow your code

Mahesh
Guest
Mahesh

Hi bro i have one doubt in this project,
if i open all logins in single *tab* its works perfectly but the thiung is if i login patient and doctor at a time in 2 tabs one is patient and another is doctor then its not retrieve the data and its not showing username in header also kindly help me bro asap.

Mahesh
Guest
Mahesh

and one more doubt if doctor wants to postpone appointment where i can write code

maurice
Guest
maurice

good morning, i have created the db named hms, and has imported the sql file, however, if try to visit the url i’m getting the http 404 error message

Karn
Guest
Karn

Sql file is not open why?

Frank
Guest
Frank

I can not login to the patient, doctors and admin, what can I do???

Pramod Maurya
Guest
Pramod Maurya

your code is not working in PHP 7.1.7 version but its working in 5.6.39 . kindly tell me solution for this.

Peter_Maina
Member
Peter_Maina

Have you used bootstrap in this project?

Peter_Maina
Member
Peter_Maina

Have you used any bootstrap?

mambo254
Member
mambo254

Hello Hi, I am having troubles with the project i get errors while uploading the sql file please assist me on this

praneetha2530@gmail.com
Guest

after i imported the sql file in the database
it is not working..it’s like “could not find database”

praneetha2530@gmail.com
Guest

we cant see the appoinment history or patient history

saranya
Guest
saranya

I’m getting a error while importing sql file

saranya
Guest
saranya

i imported the file but its not working

sonu
Guest
sonu

Hello Sir,Can you send me project report plzzz.
my Email ID is :- [email protected]

ilker
Guest
ilker

Hi, Is this project written for MySQLi version. I’m connecting the database. But user entries have errors due to mysqli

Anjali Saini
Guest
Anjali Saini

database is create then import the file but still that given the error
(
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\hospital1\hospital\hms\doctor\include\config.php:6 Stack trace: #0 C:\xampp\htdocs\hospital1\hospital\hms\doctor\index.php(3): include() #1 {main} thrown in C:\xampp\htdocs\hospital1\hospital\hms\doctor\include\config.php on line 6)
i also check the connection file but there is no error find

love soni
Guest
love soni

project is not working i import sql file but project is not working i click “click hear” button then showing me code

om samanta
Member
om samanta

sir when i click on the admin login and patients then it does not working ,means it will not open the next page……..most problem is that when i click on doctors login then i have seen the error……,,,,,,so please check it….
error is—–Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\virus8\hms\doctor\include\config.php:6 Stack trace: #0 C:\xampp\htdocs\virus8\hms\doctor\index.php(3): include() #1 {main} thrown in C:\xampp\htdocs\virus8\hms\doctor\include\config.php on line 6

kathleen marcelo
Guest
kathleen marcelo

Hi,

why is it that when i try to open the admin/doctor/patients this error “localhost is currently unable to handle this request.” is showing up. can you please advise what i need to do?
thanks

clifford
Guest
clifford

I am done with the creation of the database but can’t log on to the dashboard