Hospital Management System In PHP
Project Name : Hospital Management System (Free Download)
Technology Implemented : Apache Server
Language Used : PHP 5.62 (Developed in Core PHP)
Database : My SQL
User Interface Design : HTML, AJAX,JQUERY,JAVASCRIPT
Web Browser : Mozilla, Google Chrome, IE8,OPERA
Software : XAMPP Server
Demo video——————————-
View Demo | Installation Guide |
Hospital Management System is a web application for the hospital which manages doctors and patients. In this project, we use PHP and MySQL database.
The entire project mainly consists of 3 modules, which are
- Admin module
- User module
- Doctor module
Admin module:
- Dashboard: In this section, admin can view the Patients, Doctors, Appointments and New queries.
- Doctors: In this section, admin can add doctor’s specialization and mange doctors (Add/Update).
- Users: In this section, admin can view users detail(who take online appointment) and also have right to delete irrelevant user.
- Patients: In this section, admin can view patient’s details.
- Appointment History: In this section, admin can view appointment history.
- Contact us Queries: In this section, admin can view queries which are send by users.
- Doctor Session Logs: In this section, admin can see login and logout time of doctor.
- User Session Logs: In this section, admin can see login and logout time of user.
- Reports: In this section, admin can view reports of patients in particular periods.
- Patient Search: In this section, admin can search patient with the help of patient name and mobile number.
Admin can also change his/her own password.
User module (patient):
- Dashboard: In this section, patients can view the his/her profile, Appointments and Book Appointment.
- Book Appointment: In this section, Patient can book his/her appointment.
- Appointment History: In this section, Patients can see his/her own appointment history.
- Medical History: In this section, Patients can see his/her own appointment history.
User can update his/her profile, change the password and recover the password.
Doctor module:
- Dashboard: In this section, doctor can view his/her own profile and online appointments.
- Appointment History: In this section, Doctor can see patient’s appointment history.
- Patients: In this section, doctor can manage patients (Add/Update).
- Search: In this section, doctor can search patient with the help of patient name and mobile number.
Doctor can also update his profile, change the password and recover the password.
How to run the Hospital Management System (HMS) Project
1. Download the zip file
2. Extract the file and copy hospital folder
3.Paste inside root directory(for xampp xampp/htdocs, for wamp wamp/www, for lamp var/www/html)
4. Open PHPMyAdmin (http://localhost/phpmyadmin)
5. Create a database with name hms
6. Import hms.sql file(given inside the zip package in SQL file folder)
7.Run the script http://localhost/hospital (frontend)
Login Details
Login Details for admin : admin/Test@12345
Login Details for Patient: test@gmail.com/Test@123
Login Details for Doctor: test@demo.com/Test@123
Disclaimer : This project is not for Commercial use.
Good evening sir!
How can we edit the “Hospital Address” and “Homepage images” in the project.
Yes, you can change.
Sir, I changed the hospital address in the contact.php and replaced the images with my own images too .But it is not getting updated at the homepage.
Sir, please help me to overcome it.
Press ctrlF5
Sir admin ! how to Add patient ?
Admin can’t add patient. The doctor can add the patient only.
Is this open source good sir? Can I use this as a template for our thesis?
Yes, you can use it.
Failed to connect to MySQL: Unknown database ‘hms’ how to solve this error?
create a database hms then import SQL file available inside the package.
Run the script http://localhost/hospital is giving me error
Share your error at phpgurukulteam@gmail.com
Good day sir, trust you’re doing great. Please sir, I have done all that you instructed us to do, but is only admin table that is created after importing the hms.sql. Please, help sir. Because I have done it severally yet is still the admin table that is being created. No doctor and patient table. Thank you sir.
Are you getting any error ?
Yes sir. Here is the error message. #1293 – Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
Update your MySQL version use 5.6 or above version.
You r Awesome bro!
I want update header logo , footer logo , footer address footer mobile No from a page admin can manage this.
This feature not available in this project
Where to find the queries which are executed
Hospital/hms here you can find all coding part
Hi i would love you to guide me in this field am very sharp and learn quick also so please
And i have seen this work done am so impressed its outstanding
data not show out..
In which module
are thereany triggers used?
if yes where to find them exactly?
Triggered not used in this project.
Patients user name and password
Doctors User name and password
And will it work with Xampp 5.6.3 version
Hlo sir Iam Swati and my project is orphanage management system. And I need code for front end ,so can plz provide the src code for this project sir?plz sir help me sir….
Sorry, not available.
i am pg student my project name hospital management system with your project to me need some modules.and without dashboard please remove dash board .to me need modules purchase details,product detail,stock details, print bill.so create the project and upload .
Sorry, these features not available.
good project but need some additional things like report and invoice we can add more thinks rooms and…… thank you for this nice project…..
I will add these features soon.
Good day,
How to add new patient please?
A patient can register himself.
sir, i need to know how to Import hms.sql file(given inside the zip package in SQL file folder). please help me how to import
Open PHPMyAdmin (http://localhost/phpmyadmin)
Create a database with name hms
Import hms.sql file
Sir, I need to know information on main.js and form-element.js files present in the assets/js directory that available in this HMS project. Do we have to download this library from the web or we have to code by ourselves?
Downloaded from web
Sir, I want to know what is [assets, master, and vendor] folders in HMS project. Were they downloaded packages to support this project? If yes from where we can download.
These are support file of the templates
Please may you give me the steps you followed and how you became perfect in PHP programming. I am a Ghanaian and I want to be like you
Start from basics of the PHP.
Hello sir !! Thank you very much for your perfect project, except that I have a problem I can not add a patient after filling the form, it is not found in the database … I need your help
Ok. I will check this issue and fix it.
I can’t add doctors. Please help me. It doesn’t show any errors, but it doesn’t add doctors. Please help.
Can you share the error at phpgurukulofficial@gmail.com?
Hello, seems Book Appointment for user doesn’t work no ?
Share your error at phpgurukulofficial@phpgurukul.com
hello sir, i like the project but have problem on registration. after registration of the patient, then try to log in it rejects then when i view the database i realized its not posting on the database please help
are you getting any error?
Thank you for sharing. This project is a good start to understand how it works. Installed on OS X Catalina.
Hello Sir, i am a college student. i have to upload this project and present it on a website. But after uploading, it shows error “Failed to connect to MySQL: No such file or directory”. So what should i do now? Please help me..
Follow the instructions properly
Sir project is working fine on localhost through xampp. But on online server it is showing that error
Hi Anirudh,
My name Cedrick, I can help if Anuj will allow me. Anyway, I’m assuming you must be using an online free host server, if that the case, they normally add extract characters to your database name, eg. if your database name is hms, the host server will change it to 245hms something like that. So check inside you config/ folder look for database.php make the correct changes, also go to config.php change the $config[‘base_url’] = ”; to your host server ip address or url
Sir I am a college student. I have to upload this project and present it through a website. But after uploading to online database, it shows error “Failed to connect to MySQL: No such file or directory”. So what should i do now? Please Help me..
hello sir i am lalita kanashe plz sir help me. final year ki student hu or me ek website bna rhi hu but mujhe kuchh samjh me ni aarha h sir pls help event management ki website bna rhi hu i dont know about it more information so i want to your help. plz sir i hope that you will help me
what help you need. Share details at phpgurukulofficial@gmail.com
Patient module not login error
Can you share the error?
Hlw brother Anuj, i wanted to use you project on school so i have been trying to decrypt the DOCTORS password inoder i could change a few things but it has not been successful. am asking for your help if you can please. THANKS.
Password is encrypted with MD5. You can decrypt the password.
how to decrypt the passsword??
Using MD5
can i get vehice service management project
Right now not available.
we can use it online server
need documentation for this project
Documentation is paid. You can purchase from here —https://products.phpgurukul.com/product/hospital-management-system-report/
sir could you please send me the Complete project to my mail.
Download link given above you can download from there.
I need this project will you please send me to my mail I’d
You can download from website
Good day Sir, i need the database
Database given inside the package
their is no database in the package sir 🙁
Database available inside SQL File folder