各医師の日付を表示するには、日付(curdate)と医師のIDをフィルタリングする必要があります(すべての医師は、毎日の日付のみを表示するだけで済みます..
,id_doctor = GET['id_doctor']
これをwhere句に入れなければ機能するこのコードがあります
<table class="table table-striped table-bordered bootstrap-datatable datatable">
<thead>
<tr>
<th>Fecha</th>
<th>Hora</th>
<th>Nombre de Paciente</th>
<th>Acciones</th>
</tr>
</thead>
<tbody>
<? $sql = "SELECT * FROM CITAS WHERE f_cita = CURDATE(),id_doctor = GET['id_doctor'] ORDER BY f_cita, h_cita ASC";
$result = $conn->query($sql);
while($row = $result->fetch(PDO::FETCH_ASSOC)) {
?>
<tr>
<td><
? echo $row['f_cita'] ?></td>
<td><? echo $row['h_cita'] ?></td>
<td><? echo $row['nombrep'] ?></td>
<td><a class="btn btn-success" href=paciente_personal_profile.php?id_paciente=<? echo $row['id_paciente']; ?>>
<i class="icon-user icon-white"></i> Ver Perfil</a>
</td>
</tr><? } ?>
</tbody>
</table>
テーブル CITAS にこの FK (id_paciente および id_doctor) がありますが、"x" id_doctor がシステムにログインするときに、彼/彼女は彼/彼女の日付しか見ることができません...
これで私を助けてもらえますか?
よろしくお願いします!