You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
428 B
PHP

<?php
function guest_faq() {
$html = "";
$faqs = sql_select("SELECT * FROM `FAQ`");
foreach ($faqs as $faq) {
$html .= "<dl>";
if ($_SESSION['Sprache'] == "DE") {
$html .= "<dt>" . $faq['Frage_de'] . "</dt>";
$html .= "<dd>" . $faq['Antwort_de'] . "</dd>";
} else {
$html .= "<dt>" . $faq['Frage_en'] . "</dt>";
$html .= "<dd>" . $faq['Antwort_en'] . "</dd>";
}
$html .= "</dl>";
}
return $html;
}
?>