Hospital Management System Using PHP With Source Code

By | November 12, 2023

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]


173 thoughts on “Hospital Management System Using PHP With Source Code

  1. hassan

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

    Reply
  2. xtatic studios

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

    Reply
  3. Arnav Kumar

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

    Reply
    1. Naseeb Bajracharya

      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!!

      Reply
  4. 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

    Reply
  5. 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.

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

    Reply
    1. Naseeb Bajracharya

      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

      Reply
  7. teknopen

    the datepicker in appointment form does not appear calendar

    Reply
  8. 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

    Reply
  9. 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.

    Reply
  10. Karamat

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

    Reply
  11. Karamat

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

    Reply
  12. 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

    Reply
    1. Naseeb Bajracharya

      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

      Reply
  13. supriya

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

    Reply
  14. supriya

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

    Reply
  15. cet

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

    Reply
  16. kanaka

    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

    Reply
    1. Fabian Ros Post author

      check your database connections with a proper database name. Recommended PHP version: 5.6.3

      Reply
  17. 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

    Reply
    1. Fabian Ros Post author

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

      Reply
  18. 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

    Reply
  19. 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.

    Reply
  20. 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

    Reply
  21. Frank

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

    Reply
  22. 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.

    Reply
  23. mambo254

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

    Reply
  24. ilker

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

    Reply
  25. 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: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

    Reply
  26. love soni

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

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

    Reply
  28. 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

    Reply
  29. clifford

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

    Reply
  30. Mukesh Kumar

    plz send synopsis hospital management system

    Reply
  31. oluwatimilehin

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

    Reply
  32. ibrahimanam

    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

    Reply
    1. ibrahimanam

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

      Reply
  33. Dan

    I want the doctors to book appointments for their patients, how can I enable that feature? Thank you

    Reply
  34. karl balbuena

    Hello sir.. thank you for this…
    i would like to raise my problem..
    when I open the Patient and in the Admin Login, nothing will be displayed and in the doctors Login I have errors. can you please help me.. thank you in advanced, I hope you can help me.

    Reply
  35. Kiran

    I am not able to view the pages of login of any User Patient/Admin/Doctor. I am getting an empty page.
    or Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\hospital\hms\doctor\include\config.php:6 Stack trace: #0 C:\xampp\htdocs\hospital\hms\doctor\index.php(3): include() #1 {main} thrown in C:\xampp\htdocs\hospital\hms\doctor\include\config.php on line 6

    Please suggest.

    Reply
  36. Nikhil B

    I really thank you for the valuable info on this great subject and look forward to more great posts. Thanks a lot for enjoying this beauty article with me. I am appreciating it very much! Looking forward to another great article. Good luck to the author! All the best! 

    Php projects with source code

    Online examination system in php

    Student management system in php

    Php projects for students

    Free source code for academic

    Academic projects provider in nashik

    Academic project free download

    Reply
  37. Michael

    When I try to access the URL after importing the SQL file it gives me error 404

    Reply
  38. Oun Ali Syed

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

    Reply
  39. vipul nadge

    anyone help mi in this project..
    how many databases are created in this projects..
    please send mi some data of database

    Reply
  40. Mattias Berg

    Hi, anf thanks for this exelent php system. But how do i do to make a new table? Is there any realationships between the tables, I can´t see any connections.

    Reply
  41. ajay

    i can not login to the patient, doctor, admin what should i do?

    Reply
  42. Ahmad

    Hello dear developer sorry for disturbing you , bro when i click on admin a blank white page open but doesn’t show admin panel.
    Could you please direct me that how i access to this website please????? 🙂

    Reply
  43. Aman Kumar

    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.

    Reply
  44. Vishwank V RAI

    Everything works fine..but there so many links to plugins, add-ons,js and all.. it’s confusing..can you explain those please..and where you have used those

    Reply
  45. Vishwank V RAI

    In the patient registration..it displays successful even if we type confirm password incorrect, without selecting gender..they expanded due date to this Thursday PLEASE HELP!!!

    Reply
  46. fre

    Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\xampp\htdocs\hospital\hms\doctor\include\config.php on line 6

    Can you help me with this one?

    Reply
  47. Unknown

    “Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\xampp\htdocs\hospital\hms\doctor\include\config.php on line 6”

    I get this error help how to fix this please

    Reply
  48. Shadow Angelo

    I’ve imported the DB successfully, but the login pages are not accessible.
    What should I do?

    Reply
  49. Muhammad Naveed

    Hi Admin! you are providing great services. Thanks for your great efforts to empower the students.

    Reply
  50. Muhammad Naveed

    Please provide me a PHP,CSS, HTML, bootstrap written project on Complain Management System ( complainer cnic, complainer name, cellphone, complain, day, time, priority)

    Reply

Leave a Reply

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