engelsystem/www-ssl/faq.php

32 lines
750 B
PHP
Raw Normal View History

<?php
2011-06-01 14:30:29 +02:00
require_once ('bootstrap.php');
2011-06-01 14:30:29 +02:00
$title = "FAQ";
$header = "FAQ";
include "includes/header.php";
2011-06-01 14:30:29 +02:00
$SQL = "SELECT * FROM `FAQ`";
$Erg = mysql_query($SQL, $con);
2011-06-01 14:30:29 +02:00
// anzahl Zeilen
$Zeilen = mysql_num_rows($Erg);
2011-06-01 14:30:29 +02:00
for ($n = 0; $n < $Zeilen; $n++) {
if (mysql_result($Erg, $n, "Antwort") != "") {
2011-06-01 17:28:03 +02:00
list ($frage_de, $frage_en) = split('<br />', mysql_result($Erg, $n, "Frage"));
list ($antwort_de, $antwort_en) = split('<br />', mysql_result($Erg, $n, "Antwort"));
2011-06-01 14:30:29 +02:00
echo "<dl>";
2011-06-01 17:28:03 +02:00
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>";
}
2011-06-01 14:30:29 +02:00
echo "</dl>";
}
}
include "includes/footer.php";
?>