engelsystem/includes/pages/guest_faq.php

22 lines
410 B
PHP
Raw Normal View History

2011-06-02 00:48:29 +02:00
<?php
function guest_faq() {
$html = "";
2011-12-26 16:04:54 +01:00
if ($_SESSION['Sprache'] == "DE") {
$faqs = sql_select("SELECT * FROM `FAQ` WHERE `Sprache` = 'de'");
} else {
$faqs = sql_select("SELECT * FROM `FAQ` WHERE `Sprache` = 'en'");
}
2011-06-03 01:03:39 +02:00
foreach ($faqs as $faq) {
$html .= "<dl>";
2011-12-26 16:04:54 +01:00
$html .= sprintf(
'<dt>%s</dt> <dd>%s</dd>',
$faq['Frage'],
$faq['Antwort']
);
2011-06-03 01:03:39 +02:00
$html .= "</dl>";
}
2011-06-02 00:48:29 +02:00
return $html;
}
?>