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

[quads id=1]


Author: Fabian Ros
5 2 votes
Article Rating
Subscribe
Notify of
guest
173 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
magoiga
6 years ago

what is the username and password for the system?

hassan
hassan
6 years ago

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

Naseeb Bajracharya
6 years ago
Reply to  hassan

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
Jalil
6 years ago

Should i make the database to the myphp local host?

Naseeb Bajracharya
6 years ago
Reply to  Jalil

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

xtatic studios
xtatic studios
6 years ago

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

Arnav Kumar
Arnav Kumar
6 years ago

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

Naseeb Bajracharya
6 years ago
Reply to  Arnav Kumar

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
Farjana Islam
6 years ago

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
6 years ago
Reply to  Farjana Islam

what did you name Database?

Swati
Swati
2 years ago

Can you please send me the project report

Farjana Islam
Farjana Islam
6 years ago

hms.sql

Vivek Mishra
Vivek Mishra
6 years ago

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
6 years ago
Reply to  Vivek Mishra

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

Immanuel Sanjai kumar
Immanuel Sanjai kumar
4 years ago

i have same issue,it shows blank

Suraj
Suraj
1 year ago

Hi,
It is not working

MAyur
4 years ago
Reply to  Vivek Mishra

same here. login page didnt show up . it is blank any suggestions???

Ankit
Ankit
6 years ago

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:xampphtdocsHospitalhospitalhmsdoctorincludeconfig.php:6 Stack trace: #0 C:xampphtdocsHospitalhospitalhmsdoctorindex.php(3): include() #1 {main} thrown in C:xampphtdocsHospitalhospitalhmsdoctorincludeconfig.php on line 6

Naseeb Bajracharya
6 years ago
Reply to  Ankit

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
teknopen
6 years ago

the datepicker in appointment form does not appear calendar

Naseeb Bajracharya
6 years ago
Reply to  teknopen

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

teknopen
teknopen
6 years ago

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
6 years ago
Reply to  teknopen

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

Anto
Anto
6 years ago

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.

digu
digu
6 years ago

Ty Admin

Karamat
Karamat
6 years ago

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

Karamat
Karamat
6 years ago

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

sahana
sahana
6 years ago

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

sahana
sahana
6 years ago

its good

Olive
Olive
6 years ago

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
6 years ago
Reply to  Olive

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
supriya
6 years ago

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

supriya
supriya
6 years ago

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

rounak
rounak
6 years ago

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

cet
cet
6 years ago

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

kanaka
kanaka
6 years ago

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:xampphtdocshospitalhospitalhmsdoctorincludeconfig.php:6 Stack trace: #0 C:xampphtdocshospitalhospitalhmsdoctorindex.php(3): include() #1 {main} thrown in C:xampphtdocshospitalhospitalhmsdoctorincludeconfig.php on line 6

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

quan
6 years ago

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

Shivani Kotian
Shivani Kotian
5 years ago

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

jun
jun
5 years ago

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
5 years ago

how many tables in database ??

Sha
Sha
5 years ago

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
Mahesh
5 years ago

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.

maurice
maurice
5 years ago

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
Karn
5 years ago

Sql file is not open why?

Frank
Frank
5 years ago

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

Pramod Maurya
Pramod Maurya
5 years ago

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
Peter_Maina
5 years ago

Have you used bootstrap in this project?

Peter_Maina
Peter_Maina
5 years ago

Have you used any bootstrap?

mambo254
mambo254
5 years ago

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
5 years ago

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

praneetha2530@gmail.com
5 years ago

we cant see the appoinment history or patient history

saranya
saranya
5 years ago

I’m getting a error while importing sql file

saranya
saranya
5 years ago
Reply to  saranya

i imported the file but its not working

sonu
sonu
5 years ago

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

ilker
ilker
5 years ago

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

Anjali Saini
Anjali Saini
5 years ago

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:xampphtdocshospital1hospitalhmsdoctorincludeconfig.php:6 Stack trace: #0 C:xampphtdocshospital1hospitalhmsdoctorindex.php(3): include() #1 {main} thrown in C:xampphtdocshospital1hospitalhmsdoctorincludeconfig.php on line 6)
i also check the connection file but there is no error find

love soni
love soni
5 years ago

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

om samanta
om samanta
5 years ago

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:xampphtdocsvirus8hmsdoctorincludeconfig.php:6 Stack trace: #0 C:xampphtdocsvirus8hmsdoctorindex.php(3): include() #1 {main} thrown in C:xampphtdocsvirus8hmsdoctorincludeconfig.php on line 6

karl balbuena
karl balbuena
5 years ago
Reply to  om samanta

same problem here… did you find a solution for this error?

kathleen marcelo
kathleen marcelo
5 years ago

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
clifford
5 years ago

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

Mukesh Kumar
Mukesh Kumar
5 years ago

plz send synopsis hospital management system

oluwatimilehin
oluwatimilehin
5 years ago

hi, am having issue logining in, pls can you help with that

ibrahimanam
ibrahimanam
5 years ago

I keep having Invalid username or password error when I login into (doctor login and patient login) but admin login works fine… tried the username given in READMEFILE but still doesn’t work… I think patient and doctor login was not implanted in the project.. please reply

ibrahimanam
ibrahimanam
5 years ago
Reply to  ibrahimanam

database saved as has not has.sql also using php 5.6.3 still not working

vinu
vinu
5 years ago

pls helf database not connect