Doctor's Appointment System using PHP Free Source Code

Language

(Updated)

This project helps a certain medical establishment such as a clinic or a hospital clients/patients to request an appointment with a doctor online. This project can also help doctors to manage the schedules of their appointments with their patients. This doctor's appointment system will organize the schedules of each patient's appointment, which will be submitted as a request to the doctor they have selected. The system has 3 sides which are the administrator, the doctor, and the patient. The system admin will populate the list of the doctors with their specialties and along with the doctor's details and system credentials. The patients will browse the doctor's appointment system website to find a doctor that has the specialty of their needs. The patient can check the doctor's weekly schedule to help them to choose the day and time which they can comply for the appointment and they will submit their request for an appointment. After that, the doctors can view all their appointments and the appointment request of the patients for their availability.

Admin's Side

admin

  • Admin can add doctors, edit doctors, delete doctors;

  • Schedule new doctors sessions, remove sessions;

  • View patient details;

  • View booking of patients;

Doctor's Side

doctor

 

  • View their Appointment;
  • view their scheduled sessions;
  • view details of patients;
  • delete account;
  • edit account settings;

Patient's Side

patient

 

  • create accounts themselves;
  • view their old booking;
  • delete account;
  • edit account settings;

HOW TO GET STARTED?

  1. Open your XAMPP Control Panel and start Apache and MySQL.
  2. Extract the downloaded source code zip file.
  3. Copy the extracted source code folder and paste it into the XAMPP's "htdocs" directory.
  4. Browse the PHPMyAdmin in a browser. i.e. http://localhost/phpmyadmin
  5. Create a new database naming edoc.
  6. Import the provided SQL file. The file is known as SQL_Database_edoc.sql located inside the source code root folder.
  7. Browse the Doctor's Appointment System in a browser. i.e. http://localhost/edoc-echanneling-main/.

DEFAULT USER ACCOUNTS OF THIS PROJECT

ADMIN

Email: [email protected]
Password: 123

Doctor

Email: [email protected]
Password: 123

Patient

Email: [email protected]
Password: 123

DEMO VIDEO

The Project was developed using the following:

Apache Version: 2.4.39

PHP Version: 7.3.5

Server Software: Apache/2.4.39 (Win64) PHP/7.3.5

MySQL Version: 5.7.26

Web developer: Hashen Udara https://github.com/HashenUdara/

HashenUdara/edoc-doctor-appointment-system: Simple web project that made for e-channeling. (github.com)

More Snapshots:

ss1

ss2

GitHub

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

At the outset, I would like to extend a big congratulations to you for this really wonderful project. This project works well after trying it. I wish you would add a page to price each service the patient received and bill the expenses and print them, thus the project will be completed. Thank you

There is an issue when i try o book an appointment its show an issue like this: Warning: Undefined variable $userrow in C:\xampp\htdocs\edoc-doctor-appointment-system-main\edoc-doctor-appointment-system-main\patient\booking.php on line 48 Fatal error: Uncaught Error: Call to a member function fetch_assoc() on null in C:\xampp\htdocs\edoc-doctor-appointment-system-main\edoc-doctor-appointment-system-main\patient\booking.php:48 Stack trace: #0 {main} thrown in C:\xampp\htdocs\edoc-doctor-appointment-system-main\edoc-doctor-appointment-system-main\patient\booking.php on line 48

Can I know what to do here Sir/Maam. '; $result= $database->query("select * from webuser where email='$email'"); if($result->num_rows==1){ $utype=$result->fetch_assoc()['usertype']; if ($utype=='p'){ //TODO $checker = $database->query("select * from patient where pemail='$email' and ppassword='$password'"); if ($checker->num_rows==1){ // Patient dashbord $_SESSION['user']=$email; $_SESSION['usertype']='p'; header('location: patient/index.php'); }else{ $error='Wrong credentials: Invalid email or password'; } }elseif($utype=='a'){ //TODO $checker = $database->query("select * from admin where aemail='$email' and apassword='$password'"); if ($checker->num_rows==1){ // Admin dashbord $_SESSION['user']=$email; $_SESSION['usertype']='a'; header('location: admin/index.php'); }else{ $error='Wrong credentials: Invalid email or password'; } }elseif($utype=='d'){ //TODO $checker = $database->query("select * from doctor where docemail='$email' and docpassword='$password'"); if ($checker->num_rows==1){ // doctor dashbord $_SESSION['user']=$email; $_SESSION['usertype']='d'; header('location: doctor/index.php'); }else{ $error='Wrong credentials: Invalid email or password'; } } }else{ $error='We cant found any acount for this email.'; } }else{ $error=' '; } ?>

$utype=$result->fetch_assoc()['usertype']; Parse error: syntax error, unexpected '[' in C:\xampp\htdocs\edoc-echanneling-main\login.php on line 52 howww??

great but it is not responsive design for phone please can you give clue to adjust to all device responsive?

In reply to by rajat faruq (not verified)

Contact me I have solved all problem and it's responsive design

In reply to by Varaht (not verified)

please help me bro

In reply to by Varaht (not verified)

hello bro, where can i contact you, so that i can have the copy with the responsive design.

In reply to by Varaht (not verified)

hey where can i contact you, i want to ask a few things

hey bro could you please assist me with your solutions

how can i edit this to my prefer name "http://localhost/

edoc-doctor-appointment

-system-main" i want to change the edoc word

How to create account for Doctor, admin and patient. The sign up page is default. no any other choices

do you have any documentation for this project.

the "http://localhost/edoc-echanneling-main/. " website is not running in my browser. i'm getting a '404 not found' error. please help

In patient.php their is a subpart schedule.php is not working their is a fatal error . I can't understand this error

Warning: Undefined variable $userrow in C:\xampp\htdocs\www\edoc-doctor-appointment-system-main\patient\booking.php on line 48 Fatal error: Uncaught Error: Call to a member function fetch_assoc() on null in C:\xampp\htdocs\www\edoc-doctor-appointment-system-main\patient\booking.php:48 Stack trace: #0 {main} thrown in C:\xampp\htdocs\www\edoc-doctor-appointment-system-main\patient\booking.php on line 48

Browse the Doctor's Appointment System in a browser. i.e. http://localhost/edoc-echanneling-main/. . . . This is not working !

If i delete the booking of a session in patient page (appointment) it is getting redirected to login page. i tried to rectify the error.

hey ow to change default button color i tried every think ?

Hello sir I have a problem when I want to access another page it says. *Warning: MySQL::__construct (): (HY000/1045): Access denied for user 'root'@'localhost' (using password: No) in c:\xampp........ \connection.php on line 3

Man you nailed it you program is nice

Add new comment