= $current || event_end_date >= $current) AND (group1_id = 15 || group2_id = 15)) order by event_date ASC") //or die("SELECT Error: ".mysqli_error(mysqli $link)) ; if (mysqli_num_rows($result) == 0) { echo "

No Upcoming Events

"; } //display the data while ($newArray = mysqli_fetch_array($result)) { $event_type = $newArray['event_type']; $event_date = $newArray['event_date']; $event_time = $newArray['event_time']; $event_time_ap = $newArray['event_time_ap']; $event_end_date = $newArray['event_end_date']; $event_location = $newArray['event_location']; $event_title = $newArray['event_title']; $event_speaker = $newArray['event_speaker']; $speaker_afil = $newArray['speaker_afil']; $related_url = $newArray['related_url']; $abstract_name = $newArray['abstract_name']; //echo the results on screen echo "


"; } ?>