Schedule Appointment Test
Select Doctor
*
-- Select Doctor --
query("SELECT id, first_name, last_name, specialty FROM users WHERE role = 'doctor'"); $doctors = $stmt->fetchAll(PDO::FETCH_ASSOC); foreach ($doctors as $doctor) { echo "
Dr. {$doctor['first_name']} {$doctor['last_name']} - {$doctor['specialty']}
"; } } catch(Exception $e) { echo "
Dr. Sarah Chen - Cardiology
"; echo "
Dr. Michael Ray - Neurology
"; } ?>
Select Patient
*
-- Select Patient --
query("SELECT id, first_name, last_name FROM patients LIMIT 10"); $patients = $stmt->fetchAll(PDO::FETCH_ASSOC); foreach ($patients as $patient) { echo "
{$patient['first_name']} {$patient['last_name']}
"; } } catch(Exception $e) { echo "
John Doe
"; echo "
Jane Smith
"; } ?>
Appointment Date
*
Duration
15 minutes
30 minutes
45 minutes
60 minutes
Reason for Visit
*
Available Time Slots
Select doctor and date to see available slots
Schedule Appointment