summaryrefslogtreecommitdiff
path: root/www-ssl/faq.php
diff options
context:
space:
mode:
authorMoritz helios Rudert <helios@planetcyborg.de>2011-06-01 12:13:39 +0200
committerMoritz helios Rudert <helios@planetcyborg.de>2011-06-01 12:13:39 +0200
commit75448045cfe70054c8f4bae1bcfaf9bb0f70d330 (patch)
tree6a4d3d35019cdf933c1816e8522dc5d2557f5238 /www-ssl/faq.php
parent12e0b0d809c29d435a247798d7318cc9835980ea (diff)
fixes
Diffstat (limited to 'www-ssl/faq.php')
-rw-r--r--[-rwxr-xr-x]www-ssl/faq.php30
1 files changed, 15 insertions, 15 deletions
diff --git a/www-ssl/faq.php b/www-ssl/faq.php
index 5bb6824e..26c261da 100755..100644
--- a/www-ssl/faq.php
+++ b/www-ssl/faq.php
@@ -1,22 +1,22 @@
<?php
-$title = "Index";
-$header = "FAQ";
-include ("../../camp2011/includes/header.php");
+ $title = "Index";
+ $header = "FAQ";
+ include "../../camp2011/includes/header.php";
+ $SQL = "SELECT * FROM `FAQ`";
+ $Erg = mysql_query($SQL, $con);
-$SQL = "SELECT * FROM `FAQ`";
-$Erg = mysql_query($SQL, $con);
+ // anzahl Zeilen
+ $Zeilen = mysql_num_rows($Erg);
-// anzahl zeilen
-$Zeilen = mysql_num_rows($Erg);
-
-for ($n = 0 ; $n < $Zeilen ; $n++) {
- if (mysql_result($Erg, $n, "Antwort")!="") {
- echo "<p class='question'>".mysql_result($Erg, $n, "Frage")."</p>";
- echo "<p class='answetion'>".mysql_result($Erg, $n, "Antwort")."</p>";
+ for ($n = 0; $n < $Zeilen; $n++) {
+ if (mysql_result($Erg, $n, "Antwort") != "") {
+ echo "<dl>";
+ echo "<dt>" . mysql_result($Erg, $n, "Frage") . "</dt>";
+ echo "<dd>" . mysql_result($Erg, $n, "Antwort") . "</dd>";
+ echo "</dl>";
+ }
}
-}
-include ("../../camp2011/includes/footer.php");
+ include "../../camp2011/includes/footer.php";
?>
-