Based on the status which displays whether appointment is available or unavailable. I want to display if the status is available the user will redirected through a link to new page and if appointment is unavailable the status will be hidden. Not sure where I am going wrong..
</thead>
<tbody>
<?php
if(is_array($appointmentdetails) || isset($displayAppointment)){
foreach($appointmentdetails as $displayAppointment) { ?>
<tr>
<td><?php print $displayAppointment['DOCTOR_LICENSE_NO']; ?></td>
<td><?php print $displayAppointment['DOCTOR_FNAME']; ?></td>
<td><?php print $displayAppointment['DOCTOR_LNAME']; ?></td>
<td><?php print $displayAppointment['DOCTOR_EMAIL_ID']; ?></td>
<td><?php print $displayAppointment['DOCTOR_PHONE']; ?></td>
<td><?php print $displayAppointment['APPOINTMENT_DATE']; ?></td>
<td><?php print $displayAppointment['APPOINTMENT_TIME']; ?></td>
--> Here I want to display the given condition
<?php if('APPOINTMENT_STATUS'=="Available")
echo 'APPOINTMENT_STATUS';
{ ?>
<td><a href="input_user.php?APPOINTMENT_STATUS=<?php print $displayAppointment['APPOINTMENT_STATUS']; ?>"><?php print $displayAppointment['APPOINTMENT_STATUS']; ?></a></td>
<?php }
else ?>
<?php {?>
<td> <input type="hidden" name="APPOINTMENT_STATUS" value="<?php print $displayAppointment['APPOINTMENT_STATUS'];?>" ></td>
<?php}?>
</tr>
<?php } } ?>
</tbody>
</table>
</body>
Aucun commentaire:
Enregistrer un commentaire