blob: 9d65bb36cee1becd9ca9ebabd4abb11357a82c2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?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'");
}
foreach ($faqs as $faq) {
$html .= "<dl>";
$html .= sprintf(
'<dt>%s</dt> <dd>%s</dd>',
$faq['Frage'],
$faq['Antwort']
);
$html .= "</dl>";
}
return $html;
}
?>
|