engelsystem/includes/pages/guest_faq.php

25 lines
434 B
PHP
Raw Normal View History

2011-06-02 00:48:29 +02:00
<?php
function guest_faq() {
$html = "";
2012-11-06 00:28:27 +01:00
$faqs = sql_select("SELECT * FROM `FAQ`");
2011-06-03 01:03:39 +02:00
foreach ($faqs as $faq) {
$html .= "<dl>";
2012-11-06 00:28:27 +01:00
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']
);
}
2011-06-03 01:03:39 +02:00
$html .= "</dl>";
}
2011-06-02 00:48:29 +02:00
return $html;
}
?>