Fix appointment database insertion
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
$pdo = connectDatabase();
|
||||
$patients = listPatients($pdo);
|
||||
$calendar_settings = fetchCalendarSettings($pdo, $doctor);
|
||||
$holidays = listHolidays($pdo);
|
||||
?>
|
||||
<?php if($_SESSION["user_type"] == 1 and !isset($_GET["medico"])): ?>
|
||||
<form name="select_doctor" method="get" action="appointment.php">
|
||||
@@ -57,7 +56,7 @@
|
||||
<select id="paciente" name="paciente">
|
||||
<option>Seleccione un paciente</option>
|
||||
<?php foreach ($patients as $row) : ?>
|
||||
<option value="<?php echo $row[0]; ?>"><?php echo $row[1]; ?></option>
|
||||
<option value="<?php echo $row[0]; ?>"><?php echo $row[2]; ?></option>
|
||||
<?php endforeach ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user