Código de generador de tabla:
Código PHP:
$id_paciente = $_POST["id_paciente"];
$sql = "SELECT * FROM citas WHERE id_Paciente='$id_paciente' ORDER BY Numero_Cita";
$result = mysql_query($sql) or die(header("Location: Login.php?error=2"));
while ($row = mysql_fetch_assoc($result))
{
echo '<tr class="data_table_content"><td width="140px">' . $row["Numero_Cita"] . '</td>';
echo '<td width="300px">' . $row["Fecha_Cita"] . '</td>';
echo '<td width="40px">' . $row["Hora_Cita"] . '</td>';
echo <td width="20px" class="data_table_content_2">
}