Hospital Management System In PHP

31990 293

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

Hospital Management System Project Divided into three modules

  • Admin(super user)
  • Patients(Book and manage own  appointments )
  • Doctors

Installation Steps(Configuration)

1. Download and Unzip file on your local system.
2. Put this file inside root directory
3. Database Configuration

Open phpmyadmin

Create Database hms.
Import database hms.sql
Open Your browser put inside browser “http://localhost/hospital/”
Login Details
To Login as admin put inside browser “http://localhost/hospital”
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.

Download Project

Purchase Project Report

In this article


Join the Conversation

  • Jitendra Kumar

    sir i want to source code ..
    please do help.

    • Download link given above. Please like any social media link for unlock download link.

  • barai barai

    hello sir . cannot add new user to the system

  • Oluwatosin Fatokun

    Hi, pls can i get the source code

    • Download link given above. Please like any social media link for unlock download link.

  • Aman Singh

    Sir thanks a lot
    but so code is working perfectly on localhost but there is no integration between patient booking system and doctor dashboard
    please help me sir .

  • barai barai

    hello sir . i have a problem , whenever i try to book appointment the appointment is not successfully recorded

  • Nivas Khatal

    sir i like your Facebook page but did not get any downloads link kindly send the link on nivaskhat
    al94@gmail.com mail id.

    thanks in advance……

  • Hamzah Hashmi

    kindly mail me the code at @ hamzah.hashmi92@gmail.com

  • Bhatt Yasmeena

    HI DOWNLOAD hms BUT LOGINS NOT WORKING
    Doctor panel shows

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

    patient and admin showing blank

  • bhavin vaghela

    sir i like your Facebook page but did not get any downloads link kindly send the link on vaghelabhavin546@gmail.com mail id.

    thanks in advance……

  • Nainesh Tailor

    i like and login in facebook .still no download link activate .pls send me zip file of code

  • Nainesh Tailor

    i like and give login but still no download link activate. pls send me zip file

  • Rajeshwar Singh

    Hi.. Mr Anuj, you can also advertise your efforts to promote php on showmyads.in….

  • Nainesh Tailor

    Hospital Management System pls send code i like button of facebook

    • Download link given above. Please like any social media link for unlock download link.

  • Nainesh Tailor

    pls send me code.

  • Nainesh Tailor

    Hospital Management System pls send code i like button of facebook

  • Doni Doni

    Can you send me the code,please?

    • Download link given above. Please like any social media link for unlock download link.

  • Ken Mugambi

    am having problems login in the credentials say invalid username or password

  • Imron Bin M. Husin

    Sir, user for:
    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
    can not login.

    But if register new user can login.
    Why?

    • i am updating the project from mysl to mysqli. I will share updated code with you

      • Kgn Nayak

        Is updation done from mysql to mysqli ?

        • almost done. I will upload in saturaday

          • Kgn Nayak

            can you please mail me the code to kgnnayak@gmail.com

          • Download link given above. Please like any social media link for unlock download link

      • barai barai

        have you done sir updating this to mysqli?

  • Sudipto

    sir please send the code.

    • Download link given above. Please like any social media link for unlock download link.

  • Pallab Baruah

    Hi i liked your page but the link is is nit opening, Kindly sent me the link

    • Download link given above. Please like any social media link for unlock download link

      • Pallab Baruah

        I liked your social media pages multiple times. But still the download links are no showing up

  • Ol Le

    dear please send the the code, thank U in advance lemuel.olvera@gmail.com

    • Download link given above. Please like any social media link for unlock download link

      • Ol Le

        i have cliced on link above but the link does not show

      • Pallab Baruah

        I liked the social media pages multiple times. But still the download links are no showing up

  • Jack Palitang

    Please send the code palitang3@gmail.com

    • Download link given above. Please like any social media link for unlock download link.

  • ochepacker@gmail.com is my mail address

    • Download link given above. Please like any social media link for unlock download link

  • i can’t find download link in all ur free project,how can i download them

    • Download link given above. Please like any social media link for unlock download link.

  • mohammad jawed qasemi

    dear sir please send me the source code
    thanks a lot from your kindness
    sanazalwandi@gmail.com

    • Download link given above. Please like any social media link for unlock download link

  • hello anuj sir please send me

    hello anuj sir please send me code at bhushan.marathe83@rediffmail.com

    • Download link given above. Please like any social media link for unlock download link

  • Naveed Kareemi

    please send the code to sunkari.rjsh@gmail.com thanks in advance

  • Sanchi Gaikwad

    Please mail me the source code at sanchigaikwad2610@gmail.com

  • mohit

    not recived at eminem.mohit43@yahoo.in

  • mohit
  • shuvojit sarker

    sir sent me plzzz

  • Jonathan Manuel Olivera

    sir please send the code my mail is jhonatanmanu1591@gmail.com

  • jk3gwapo

    sir please do send the codes. my mail is jk3hapa7@gmail.com

  • Lingges D’Blanco

    psychixkillax@gmail.com
    Sir Code Please ? thank you 🙂

  • Morsidul Amin Ridwan

    Sir, please help. it shows that

    Warning: mysqli_connect(): (HY000/1045): Access denied for user ‘root’@’localhost’ (using password: YES) in C:xampphtdocshospitalhmsdoctorincludeconfig.php on line 6

    Could not connect database

    what should i do?

    • change the db configuration in config.php

  • Morsidul Amin Ridwan

    Sir, how to configure this project? I’ve installed php5.5 and opened this project with xampp. Here admin login and patients showed blank page but doctor login showed error. Sir, what should i do in this circumstances?

    • Installation Steps(Configuration)

      1. Download and Unzip file on your local system.
      2. Put this file inside root directory
      3. Database Configuration

      Open phpmyadmin

      Create Database hms.
      Import database hms.sql
      Open Your browser put inside browser “http://localhost/hospital/”
      Login Details
      To Login as admin put inside browser “http://localhost/hospital”
      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

  • Amon

    Amazing project, hope i can contribute with some translations or something, thanks!

  • Rupesh Kumar Choudhary

    Please send me the code of HMS.email : rupeshonlineforyou@gmail.com

  • Amon

    please master. send me the code and thanks in advance for your great work! email: amon.k3b@gmail.com

  • abha gaiki

    sir please send the code

  • SHWETA BISHT

    sir please send the code.

  • kamran

    sir when patient book an appointment it doest not save in database and not show in table

  • Santiago Center

    Send code pls santiagocenter1@gmail.com thanks

  • Lohith The Geek

    Guys can anyone tell me the steps to execute it… It’s not clear how to do it on top.. Please help me out anyone…!!

    • Installation Steps(Configuration)

      1. Download and Unzip file on your local system.
      2. Put this file inside root directory
      3. Database Configuration

      Open phpmyadmin

      Create Database hms.
      Import database hms.sql
      Open Your browser put inside browser “http://localhost/hospital/”
      Login Details
      To Login as admin put inside browser “http://localhost/hospital”
      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

      • Lohith The Geek

        Where is the root directory…and which root directory are we talking about…??

        • for xampp is htdocs and for wamp is www

          • Lohith The Geek

            Yes sir I got it… And what is this database configuration…?? Sorry if I’m causing alot of trouble… But I’m new to this… Please help me out sir

          • create a db then import sql file

          • Lohith The Geek

            Yes sir…I did that… But I’m getting an error which was discussed in the community… But how do I change the PHP version to 5.6 here in xampp

  • Luckykim

    Hello sir, I have changed the version(php5.6 ) but still i am getting the same thing ,ike when I click on patients nothing appears and also when I click on admin this error comes
    Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:xampphtdocshospitalhmsdoctorincludeconfig.php:6 Stack trace: #0 C:xampphtdocshospitalhmsdoctorindex.php(3): include() #1 {main} thrown in C:xampphtdocshospitalhmsdoctorincludeconfig.php on line 6

    • looks like db connection problem

      • kamran

        every where in project replace ‘mysql’ to ‘mysqli’ and also add $bd in my mysql_query(); as first parameter
        example : $sql=mysqli_query($bd,”select * from users where email='”.$_SESSION[‘login’].”‘”);

    • kamran

      every where in project replace ‘mysql’ to ‘mysqli’ and also add $bd in my mysql_query(); function as first parameter
      example : $sql=mysqli_query($bd,”select * from users where email='”.$_SESSION[‘login’].”‘”);

      • use php 5.6 or lower version

        • kamran

          lower than 5.6 uses mysql and in 5.6 or greater then use mysqli its the solution of @Luckykim problem

  • HRidoy Munshi

    sir…i cann’t download

  • Prom Phreezzy

    Hello sir, I have tried to do the instruction but when I click on patients nothing appears and also when I click on admin this error comes
    Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:xampphtdocshospitalhmsdoctorincludeconfig.php:6 Stack trace: #0 C:xampphtdocshospitalhmsdoctorindex.php(3): include() #1 {main} thrown in C:xampphtdocshospitalhmsdoctorincludeconfig.php on line 6

  • Morsidul Amin Ridwan

    Sir, please send the source code…..ridwan.cse.rmstu@gmail.com

    • Mail sent

      • Morsidul Amin Ridwan

        Thank you sir

  • Luckykim

    Thank you Sir i got the mail i import the database but the patients, doctor login and user login is not working rest its its working can u plz tell me what to do..

  • parvathi

    sir please send the source code… parvathi.sanil@yahoo.com

  • An Ordinary Princess

    sir i liked from one of the pages,but didnt get the download option ,please send me project at iampooja1d@gmail.com

  • Arif Rahman

    sir,please sent me the source code
    Email id: arif.rahman.m1@gmail.com

  • irfan khalid

    Sir., i have liked the page but i didn’t get any option to download can you please send me the whole project . it’ll be very grateful of you.my email id is : irfankhalid2020@gmail.com

  • Shiva Prasad Gupta

    Sir, Please send this project to mail id (shivaprasadbsc@rediffmail.com) ThanQ

  • Luckykim

    Sir., i have liked the page but i didn’t get any option to download can you please send me the whole project ior the download link. it’ll be very grateful of you.my email id is : kimlucky72@@gmail.com

    • sent

      • Luckykim

        Thank you Sir i got the mail i import the database but it was not working only index page is working the rest is not working can u tell me what to do

  • Otontro Prohori

    sir i also liked the page and i didnot get the download link please email it to me. email id: arasha.asha@gmail.com

  • Krishna Sunkara

    sir i have liked the page and i didnt get the download link please email it to me. email id: krishna.sunkara13@gmail.com

  • Abdulrahman danmallam

    Hello,please why is the slideshow not active,can you please check it and send the source code back to me,likewise I try changing the interface is giving problem kindly explain how I can do that please via my mail. Danmallamabdulrahman002@gmail.com

    • If you want to change the interface please make changes in css file

      • Abdulrahman danmallam

        Okay,what about the slideshow .it’s not active its just that one same picture, please can you send the one active to me

  • Anyanwu Veronica

    good day sir pls i need the report on HMS

    • Report is paid. Purchase from here–http://www.phpgurukul.com/shop/product/hospital-management-system-report/

  • rajat shetty

    hello sir.can you please send me the project it’ll be very grateful of you.my email id is : rajatshetty54@gmail.com

    • Mail sent

      • rajat shetty

        sir i didnot get any source code

  • Tzar Wam Leo Emrys

    No download button.. I liked the page on facebook.. Please help and send it on wamleo101@gmail.com coz i have no download button

  • Be Social

    hi sir i liked but cant able to download the project.. please help me..
    my email id is aakashtomarsocial@gmail.com

  • Sushma Gowda

    please send the source code i liked it on facebook
    sushmagowda555@gmail.com

  • MANUEL EDUSEI

    Hi Sir please send me the code
    juniormills07@gmail.com

  • Farooq Stanikzai

    Hi Sir please send me the source code :
    farooq.stanikzai.afg@gmail.com

  • Anita Amara

    hi sir, I supported with facebook but did not get the download button is
    still locked. (uchennacallistus@gmail.com) thank you in advance

  • Nze Brian Eruo

    i get this error cannot connect

    • First create db with name hms then import hms.sql file

  • tauhid rahman

    Hi sir, i supported with google button but didnt get the download button can you please sent to me the project (rahmantauhidur6@gmail.com) thank you in advance.. 🙂

    • Mail sent

      • tauhid rahman

        thank u sir… 🙂

  • Anonyme Ghost

    can you please sent to me the projet (chintokhammami33@yahoo.fr) ?

  • Anonyme Ghost

    I support you by facebook but i didn’t get the download link.

  • Anonyme Ghost

    Hi sir, I need Hospital Management System can you please sent to me the projet (chintokhammami33@yahoo.fr) ?

    • mail sent

      • Anonyme Ghost

        thank you so much !!!

  • MIljan Petrovic

    http://localhost/hospital/hms/admin/index.php

    Dear sir , before all thanks a loooot!

    I installed db, did all, its ok but on link as above, admin login, cant login.. Help 😀

    I have xamp, PHP 5.6.31 ver

    • MIljan Petrovic

      I did it, i was so stupid 😀

  • Anyanwu Veronica

    nice project
    please i will like to learn php from scrash do you have a tutorial for beginners?

  • Karan Soni

    hey bro can u please share a video to configure the mysql with the project
    if done please share on my email id :- karans5928@gmail.com

  • Sivaganesh Murugesan

    can you send projects reports sir??

    • Report is paid. Link–https://phpgurukul.com/shop/product/hospital-management-system-report/

  • Sivaganesh Murugesan

    could you please send projects reports sir??
    sivaganeshmurugesan19@gmail.com

  • ashi king

    what is the admin panel url

  • Er Rahul Take

    hello sir when i created my account and type username and password it cant go to dashboard page

    • Use php 5.6 or lower version

      • Er Rahul Take

        i m using xampp 5.6.31 version but i cant go to dashboard

  • Ananya Sinha

    Sir what are the libraries used in the program?

  • rifat wazir

    well done sir, i am student of master computer science and i have one question sir, how to get project proposal and thesis
    in hms project…..kindly solve my problem

    • if you need project report. You can download from here–https://phpgurukul.com/shop/product/hospital-management-system-report/

  • toulhousemusic

    Sir in which file can we see the connection of mysql database with php?

  • Ananya Sinha

    Sir i want to change the images used in the project. How can I proceed? Like the image used on the home page of site.

  • Ananya Sinha

    Sir in your steps you mentioned “Database Configuration “

    What do you mean by that?

    • you have create a database hms then import hms.sql file

  • Ananya Sinha

    Hi sir https://uploads.disquscdn.com/images/b407b13c12bbdfbfdb36ddcdb11d9942cbe06f89bec6b4dac5d79a12d45582b3.jpg https://uploads.disquscdn.com/images/aa7b386c448bfcd6e6d8ef3ace8589b59c7f529f179a0a904b070b34cfe87143.jpg https://uploads.disquscdn.com/images/aa7b386c448bfcd6e6d8ef3ace8589b59c7f529f179a0a904b070b34cfe87143.jpg https://uploads.disquscdn.com/images/b23ae98b245b546ad3af854770bf54f97c7ab1270fb519f2eaa85d815c8e6504.jpg .
    I put the hospital folder in root directory. I created hms database on phpMyAdmin and also imported hms.sql in that database.
    Now, when I go to my browser and type http://localhost/hostpital/ it shows the first page.
    But, when I try to Login into Admin or Patient, it opens a page with no content on it.
    Also when I try to Login into doctor, it gives the following error :-

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

    I have attached the images. Please reply ASAP.

  • Ananya Sinha

    HI, can you please explain to me how to execute this project?
    my email address is ansinha27@gmail.com

  • Kritika Asreth

    Sir,please send me the source code with database configuration on this e-mail :asrethkritika@gmail.com

    • Mail sent.

      • Kritika Asreth

        sir ,i am not able to do database configuration can you please tell me how to that.as due to this problem database is not connecting with frontend

        • Create a db with name hms then import hms.sql file

  • rara

    great work sir,
    I have one question. Why I can’t insert any data into database? For users table in database, I can’t add any new users. Please I hope you can answer my questions. And if it possible can you send me the source code with database configuration on this e-mail : masturamdanuar@gmail.com

    • what error you get can you share the screenshot of the error

      • rara

        there is no error showed but when I want to add registration for new patient, it does not do anything and I look into database there is no new patient that I register. and can I add new admin, or new doctor? Because I try to make a new admin by insert it manually into database and it doesnt work.

  • Swapnil Patil

    WHICH VERSION PHP SHOULD I DOWNLOAD TO RUN THIS PROJECT . I HAVE TRIED VARIOUS VERSION BUT IT GETTING ME PROBLEM EVERTYTIME. CAN U PLEASE PROVIDE DOWNLOAD LINK of which PHP VERSION SHOULD I DOWNLOAD DIRECTLY…..

  • saurabh sahu
    • use php 5.6 or lower version

      • saurabh sahu

        i am already using php 5.5.12

        • your php version not supporting mysql_connect()

  • saurabh sahu

    i want to get your full code of hotel management system saurabhsahu004@gmail.com

    • Sorry. Hotel management system not available

      • saurabh sahu

        sorry sir i need Hospital Management System

  • Didin Mas Khoiruddïn

    Its good work, could you please send a code mohdidinmaskhoiruddin@gmail.com

    • Mail sent.

    • Swapnil Patil

      which version of php r u using and on which operating system and with xampp or ampps or wampp

  • Benjamin Sangma
    • Make id column primary in admin table

  • saurabh sahu

    Hello i want the full sorce code … i am not able to access this
    kindly help me saurabhsahu004@gmail.com

  • Moses Shitote

    Hello, i have downloaded hms and configured correctly but now when i try to login to any account using the credentials given keeps getting invalid credentials…please assist. regrads

  • David Raj Kanthi

    Hello i want the full sorce code … i am not able to access the other pages other than the home page…!
    kindly help me kanthidavid@gmail.com

    • Use PHP 5.6 or lower lower version

      • David Raj Kanthi

        Thanks bro i got it

  • Kartik Bhatt

    Hello Sir, I have download the files and completed the all setup but when I open any login page its not functioning….Can you send me the the full code on kartik.bhatt90@gmail.com. Thanks in advance

  • Rahul

    hello dear sir
    i want to get your full code of hotel management system …… rahulkumar3.1996@gmail.com

    • Rahul

      can you send a full code in zipped file

  • Anayatullah rahimi

    Hi dear Good Evening
    If you kindly send me the source code of hospital management system….anayatullahrahimi9@gmail.com

  • Siva Arul

    Hi good work, could you please send code sivaarulnp@gmail.com

  • Virat Sharma

    Send me Source code in Viratgzp@gmail.com

  • F Naiemah

    Hi sir. I have a problem when i’m trying to open localhost/hospital. I already do all the configuration and import the database. But not successful because it stated Object not found! Error 404. Where should i look to fix this problem? Thank you. 🙂

    • i already send solution on fb

      • Virat Sharma

        Kha pe sir.. same problem ho rhi hai

        • download the zip file and extract the zip file.After that copy shopping folder inside the package and paste in the root . then try

          • Virat Sharma

            Where in Root…? I can’t understand

          • htdocs in xampp and www in wamp

          • Virat Sharma

            I m Using Wampp but.. Database me sql Import kr rha hu to utfmb4 Aisa kuch error aa rha

          • Your db doesn’t support character set. Upgrade your db

          • Virat Sharma

            How to upgrade If u have link then send me..Either tell me What i need to Download

          • download from here —-http://www.wampserver.com/en/

  • Ahmed Elgrouney

    please sir send me the source code with database configuration on this e-mail : ahmed.elgrouney@gmail.com

  • zohaib

    sir i need this project plz send me on my email zhassan481@gmail.com

  • Jesus Doolin

    sir please send me complete source code and db files.
    talhabd1995@gmail.com

  • Janinca

    hi sir would you mind if you send me the source code? reyesjanicatrisha1@gmail.com 🙂

  • Neeraj Kumar

    Hello Sir, Would you send me the source code of this complete Project to this mail Id sneerajkumar91@gmail.com 🙂

  • likhamor quezon

    hello sir.. kindly send me the source code? we need that for our project… here’s my gmail account.. likhamor699@gmail.com
    thank you for your help in advance! 🙂

  • nadir khan

    Hy
    sir please send me complete source code and db files.
    nadirkhan151214@gmail.com.

  • Athar Jan

    if you can send me source code plz?? matharjan@gmail.com

  • hstan

    if you dont mind to share with me at haishitan@gmail.com

  • pradeep

    sir database me doctors ki login details kyu nhi show ho rhi h

    • in screenshot error not clear.
      use xampp instead of wampp. Bcz project tested on xampp

  • Ahmed Nabigh

    Can you please send me the full source code and DB? mail Ahmed.Nabigh@gmail.com

    Thanks in advance.

    • Mail sent.

      • Ahmed Nabigh

        Thanks alot, but i can’t put php code im my html page, can you tell me how to do that.

  • Ramesh Kumar S

    Sir i will pay and download the hospital management report.but in report relational tables are not there plz send me the relations tables.plz plz.i want that

  • Ramesh Kumar S

    In there er diagram in hms project report

  • Ramesh Kumar S

    Sir please send me the hospital management system project report.my mail id is ramesh2897@gmail.com

  • mo7med Eid

    please sir send me a full source code and database file……….. email: mo77med.eid@gmail.com

  • serguei

    Hello Master can you please send the complete source code with database to email id cheserge5@gmail.com Thankyouverymuch

  • jc chris

    Hello Master can you please send the complete source code with database to email id sephchriss@gmail.com Thankyouverymuch

    • Mail Sent. Code and db file available inside the zip file.

  • Sudarshan Itap

    hello sir can you please send the complete source code with db to email id sudarshanitap@gmail.com

    • Mail sent.

      • antis

        Dear Anuj , could you please send complete project in my e-mail (antisdurai@yahoo.com)