Hospital Management System in PHP MySQL with Source Code

A simple project based on Hospital Management System which uses PHP Language. Following PHP project contains the least but important features which can be in use for the first year, second year IT students for their college projects. It has a number of important features that will allow all the users to manage patients, appointments records, etc. This system as well as the web application’s concept is all clear, it’s the same as real-life scenarios and well-implemented on it. To download free hospital management system project in PHP MySQL with source code files, please scroll down to the bottom of this post for the Download button.

About Hospital Management System PHP Project

Moving on, this simple hospital management system project in PHP focuses mainly on dealing with numerous hospital records. Also, the system displays all the available records of patients and their appointments. In addition, the system allows registering doctors too. The project is divided into three categories: Admin, Doctor, and Patient. In an overview of this web application, the patient can proceed with booking an appointment. For this, the user has to select doctor, specialization, date, and time. After the selection of the doctor, the system displays the total fees for it. Besides, the patient can view his/her appointment history and prescription details. Also, the patient can cancel an appointment anytime.

Doctor’s Panel and Prescriptions

Coming towards the doctor’s panel, it all depends upon the patient’s appointment request. The main responsibility of a doctor’s account is to approve the appointment and prescribe medicines. As soon as the patient book an appointment, that particular doctor gets a request. Each field contains the patient’s name, gender, email, date, and time. Here, he/she can cancel or prescribe the appointment. After approving an appointment, the doctor has to fill up certain fields. These fields include the name of the disease, allergies, and prescriptions. After submission, the patient can view his/her prescription and proceed towards bills payment. Besides, the doctor can view appointment and prescription histories.

Admin Panel

On the other hand, the admin has full control of the system. An admin plays an important role in the proper flow of this whole system. An admin has the right to manage a doctor’s account. And for the removal of the doctor’s account, he/she has to enter up doctor’s email address to proceed. The admin can list all available patients, doctors, and their appointments with listed prescriptions. In fact, an admin can have an overview of all records around the system. He/she can view all the prescriptions from each doctor. Besides, the admin can perform search functions on each section which helps to filter up the records on time. Additionally, the admin can view all the contact queries with names, emails, and messages of each.

Last but not least, a clean and simple dashboard is presented with simple color combinations for greater user experience while using this Hospital Management System Project in PHP MySQL. For its UI elements, a free open-source CSS framework; Bootstrap is on board with some Vanilla CSS too. Presenting a new Simple Hospital Management System in PHP MySQL Project which includes an admin panel with patient and doctor panel that contains the least but essential features to follow up, and a knowledgeable resource for learning purposes.

Available Features:
  • Patient Panel
  • Doctor Panel
  • Admin Panel
  • Book an appointment
  • Appointment history
  • Prescription list
  • Manage appointment (doctor)
  • Prescribe
  • Manage Doctors
  • View Available Patients
  • Search Records
  • List overall appointment, prescriptions
Project Name:Simple Hospital Management System
Language/s Used:PHP
PHP version (Recommended):5.6 or Newer
Type:Web Application
Developer:Kishan Lal
Simple Hospital Management System PHP Project Overview

Instructions: How to Run?

  • After you finish downloading the project, unzip the project file and head over to your XAMPP directory.
  • There you’ll find a folder naming “htdocs”.
  • Inside the “htdocs” folder, paste the project folder (not the .zip one, but the extracted one).
  • Open your favorite browser; we recommend using Google Chrome or Mozilla Firefox.
  • Then, go to URL “http://localhost/phpmyadmin“.
  • Create a Database with a name that is provided inside the “01 LOGIN DETAILS & PROJECT INFO.txt”.
  • Click on the “Import” tab and choose the database file (.sql) which is provided under the folder naming “DATABASE FILE”.
  • After setting up all these, go to URL “http://localhost/[ PROJECT_FOLDER_NAME ]/“
  • All the login details are provided inside the project folder, check that out and enter in order to use it.

And there you have it, a full setup of the Simple Hospital Management System project in PHP MySQL. For this particular PHP project, PHP Version 5.6 or Newer is required because the project might not operate well with the oldest PHP version. So, users with the oldest PHP version (less than 5.6) might face various problems while operating it. As a result, you’ll need to upgrade your PHP version (only if you’re using the oldest version) at the moment. Download Free Hospital Management System Project in PHP MySQL Source Code. So, this hospital management system PHP project is a basic project for all the beginner levels that broads vast knowledge into such PHP web applications. In conclusion, this whole PHP project with free source code is an absolute project and a meaningful way for the users to learn and explore more about it.

Free Download Simple Hospital Management System Project in PHP MySQL with Source Code:
Click the Download Button Below to Start Downloading

Note: Only for Educational Purpose



          1. We’re unsure about this problem (blank screen), we’ve tried everything (so that we could get and know that error), but still, it works every time. We don’t think that’s the problem with our shared projects!

  2. Showing following error when I try to book an appointment.
    Local host says: unable to process your request. Please try again!

  3. hello sir,
    Why when i click pay bill button error?
    here is the error Warning: require_once (TCPDF / tcpdf.php): failed to open stream: No such file or directory in C: \ wamp64 \ www \ Hospital-ManagementPHP \ admin-panel.php on line 108

  4. Hello again sir, excuse me there is no mistake everything works fine, I downloaded TCPDF and it worked. Many thanks to you for this work

  5. Fatal error: Uncaught mysqli_sql_exception: Access denied for user ‘root’@’localhost’ (using password: NO) in C:\xampp\htdocs\Hospital-ManagementPHP\func3.php:3 Stack trace: #0 C:\xampp\htdocs\Hospital-ManagementPHP\func3.php(3): mysqli_connect(‘localhost’, ‘root’, ”, ‘hospitalms’) #1 {main} thrown in C:\xampp\htdocs\Hospital-ManagementPHP\func3.php on line 3

        1. You need to set your credentials for MySQL connection. By default, there is no such password (left blank “”), but your server has it. So, you need to place your password under every mysql_connect in files such as func, func1 and much more!

      1. Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ”saran’………….admin-panel. php on line 45

        i have an error like this when i apply the appoinment pls tell me how to solve this

  6. Can you please add uploading images from Patient Panel and viewing it from Doctor panel. Thank you in advance for your help

    1. You’ve to create new doctor details from the admin panel. Please use the system properly as you’ve to understand the whole system based on how it works.

    1. You’ve to create new doctor details from the admin panel. Please use the system properly as you’ve to understand the whole system based on how it works.

    2. Bonjour merci pour ce projet génial, j’ai réussi à faire le projet mais il y’as une erreur on dirais, quand j’essaai de me connecter étant qu’admin ou soit si je veux crée un compte ça ne marche pas ça me renvoi **cette page ne fonctionne pas** **HTTP error 500** svp prière de m’aider monsieur !!

  7. project is run but in admin side if i have add one module like manage patient then how can i do plz help me?

  8. hello, Showing error when I try to book an appointment. I input correct doctor name and specialization but not showing Consultancy Fees. how can fix it? plz help.

    1. [as already mentioned]Please download “TCPDF” for generating PDF, for now it has been removed from the project directory due to excessive file size. For more: check the given text file!

Leave a Reply

Your email address will not be published. Required fields are marked *