1

Hi May I know how to display greyed out link when the event status is already over? My code is as below but when I put the whole line of echo statement is not valid.

<?php if($row['Event_status'] = "Over")?>

                        echo "<td><a href='CustPortal.php?booking_id=".$row['Booking_id']."'> Cancel</a></td>";
Cœur
  • 34,719
  • 24
  • 185
  • 251

1 Answers1

0

You have closed php tag ?> and use == instead of =

try this

<?php
if($row['Event_status'] == "Over")
  echo "<td><a href='CustPortal.php?booking_id=".$row['Booking_id']."'> Cancel</a></td>";
?>
Droid
  • 569
  • 3
  • 12