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.

22 lines
410 B
PHTML

14 years ago
<?php
function guest_faq() {
$html = "";
if ($_SESSION['Sprache'] == "DE") {
$faqs = sql_select("SELECT * FROM `FAQ` WHERE `Sprache` = 'de'");
} else {
$faqs = sql_select("SELECT * FROM `FAQ` WHERE `Sprache` = 'en'");
}
14 years ago
foreach ($faqs as $faq) {
$html .= "<dl>";
$html .= sprintf(
'<dt>%s</dt> <dd>%s</dd>',
$faq['Frage'],
$faq['Antwort']
);
14 years ago
$html .= "</dl>";
}
14 years ago
return $html;
}
?>