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.

32 lines
750 B
PHTML

<?php
14 years ago
require_once ('bootstrap.php');
14 years ago
$title = "FAQ";
$header = "FAQ";
include "includes/header.php";
14 years ago
$SQL = "SELECT * FROM `FAQ`";
$Erg = mysql_query($SQL, $con);
14 years ago
// anzahl Zeilen
$Zeilen = mysql_num_rows($Erg);
14 years ago
for ($n = 0; $n < $Zeilen; $n++) {
if (mysql_result($Erg, $n, "Antwort") != "") {
14 years ago
list ($frage_de, $frage_en) = split('<br />', mysql_result($Erg, $n, "Frage"));
list ($antwort_de, $antwort_en) = split('<br />', mysql_result($Erg, $n, "Antwort"));
14 years ago
echo "<dl>";
14 years ago
if ($_SESSION['Sprache'] == "DE") {
echo "<dt>" . $frage_de . "</dt>";
echo "<dd>" . $antwort_de . "</dd>";
} else {
echo "<dt>" . $frage_en . "</dt>";
echo "<dd>" . $antwort_en . "</dd>";
}
14 years ago
echo "</dl>";
}
}
include "includes/footer.php";
?>