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.
25 lines
434 B
PHP
25 lines
434 B
PHP
<?php
|
|
function guest_faq() {
|
|
$html = "";
|
|
$faqs = sql_select("SELECT * FROM `FAQ`");
|
|
foreach ($faqs as $faq) {
|
|
$html .= "<dl>";
|
|
if ($_SESSION['Sprache'] == "DE") {
|
|
$html .= sprintf(
|
|
'<dt>%s</dt> <dd>%s</dd>',
|
|
$faq['Frage_de'],
|
|
$faq['Antwort_de']
|
|
);
|
|
} else {
|
|
$html .= sprintf(
|
|
'<dt>%s</dt> <dd>%s</dd>',
|
|
$faq['Frage_en'],
|
|
$faq['Antwort_en']
|
|
);
|
|
}
|
|
$html .= "</dl>";
|
|
}
|
|
return $html;
|
|
}
|
|
?>
|