diff --git a/viewevent.php b/viewevent.php index c10f335..a06e57b 100644 --- a/viewevent.php +++ b/viewevent.php @@ -66,7 +66,7 @@ $eventid=$_GET['eventid']; print_r($row1['date_time_end']); echo ""; echo ""; - echo "Event Updates"; + echo "Event Updates:"; echo ""; $update_query = "SELECT update_desc, update_date_time, update_user FROM event_updates WHERE event_updates.event_id=".$eventid.";"; $update_result = $conn1->query($update_query); @@ -84,15 +84,32 @@ $eventid=$_GET['eventid']; echo "Update Date and Time: "; echo ""; print_r($update_row['update_date_time']); - echo ""; + if(empty($update_row['update_image'])) { + echo ""; + } else { + echo ""; + echo "Image: "; + echo ""; + echo "Attachment"; + } } } else { echo "No updates to this event"; } echo ""; + if(empty($row1['event_image'])) { + echo ""; + echo "Edit Event"; + echo ""; + } else { + echo ""; + echo "Attachments:"; + echo ""; + echo "Attachment"; echo ""; echo "Edit Event"; echo ""; + } } } else { echo "

ERROR Event ID Not Found

";