summaryrefslogtreecommitdiff
path: root/includes/pages/guest_faq.php
blob: 2799cbafe44a036d21ca0856c75176258ad8c5a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?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;
}
?>