$presenter_name1"; // Convert any spaces in file name to %20 (to pass W3C validation) $photo = str_replace(" ", "%20", $photo); // Check whether an image file name has been entered in the database, then check whether that file exists if (!empty($photo)) { $photo_file = "pictures/presenters/$photo"; if (file_exists($photo_file)) { $display_presenter1photo .= "\n\"$presenter_name,"; } else { $display_presenter1photo .= "\n\"No"; } } else { $display_presenter1photo .= "\n\"No"; } } else { // Second time around - second presenter - all other data is the same, just collect second presenter details and add to display string $presenter_id = $row['presenter_id']; $firstname = $row['firstname']; $surname = $row['surname']; $photo = $row['photo']; $presenter_name_initcaps = $firstname . " " . $surname; $presenter_name2 = strtolower($presenter_name_initcaps); $display_presenternames .= " and $presenter_name2"; // Convert any spaces in file name to %20 (to pass W3C validation) $photo = str_replace(" ", "%20", $photo); // Check whether an image file name has been entered in the database, then check whether that file exists if (!empty($photo)) { $photo_file = "pictures/presenters/$photo"; if (file_exists($photo_file)) { $display_presenter2photo = "\n\"$presenter_name,"; } else { $display_presenter2photo = "\n\"No"; } } else { $display_presenter2photo = "\n\"No"; } } } $display_course_code = "

course code: $course_code

"; $display_block .= $display_presenter1photo; if ($display_presenter2photo != "") $display_block .= $display_presenter2photo; $display_block .= "\n

$title

"; $display_block .= "\n

with $display_presenternames
"; $display_block .= "\n$presentation_date, $presentation_start_time - $endtime
"; $display_block .= "\nvenue: $venue

"; $display_block .= "\n
"; // HTML title and SEO tags if ($presenter_name2 == "") { $title_tag = "$presenter_name1"; $seo_text = "$presenter_name1"; } else { $title_tag = "$presenter_name1 and $presenter_name2"; $seo_text = "$presenter_name1, $presenter_name2"; } // The connection will be closed automatically when the script ends, but to make it explicit: mysqli_close($connection); ?> AT Congress 2015 | <? echo $title_tag; ?> | Special Presentation
Actively engaged in a continuous learning session at Alexander Technique Congress

special presentation

Facebook icon Twitter icon Youtube icon Email icon

all special presentations daily schedule weekly schedule