From 310c2ce98fc8c0e94559c9ed8587101d92f6e853 Mon Sep 17 00:00:00 2001 From: cookie Date: Sat, 10 Sep 2005 17:25:43 +0000 Subject: add total system git-svn-id: svn://svn.cccv.de/engel-system@1 29ba0400-6e00-0410-a75a-ca02368028f8 --- nonpublic/faq.php | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100755 nonpublic/faq.php (limited to 'nonpublic/faq.php') diff --git a/nonpublic/faq.php b/nonpublic/faq.php new file mode 100755 index 00000000..d8388f50 --- /dev/null +++ b/nonpublic/faq.php @@ -0,0 +1,71 @@ + +

+
+ +

+ +
+".Get_Text(37)."

\n".nl2br($frage)."

\n".Get_Text(38)."
\n"; + +$SQL = "INSERT into Questions VALUES (\"\", \"".$_SESSION['UID']."\", \"$frage\", \"\", \"\")"; +$Erg = mysql_query($SQL, $con); + +} +// Bisherige Anfragen: +echo "
\n".Get_Text(39)."
\n"; +echo "
\n"; +echo "
".Get_Text(40)."
\n"; + +$SQL = "SELECT * from Questions where UID = ".$_SESSION['UID']." and AID=\"0\" ORDER BY 'QID' DESC"; +$Erg = mysql_query($SQL, $con); + +// anzahl zeilen +$Zeilen = mysql_num_rows($Erg); + +if ($Zeilen==0){ + Print_Text(41); + +} else { + for ($n = 0 ; $n < $Zeilen ; $n++) { + echo "

".nl2br(mysql_result($Erg, $n, "Question"))."
\n"; +// Es gibt ja noch keine Antwort: +// echo "

".nl2br(mysql_result($Erg, $n, "Answer"))."

\n"; + echo "\n
---
"; + } +} + +echo "
\n"; +echo "
".Get_Text(42)."
\n"; +$SQL = "SELECT * from Questions where UID = ".$_SESSION['UID']." and AID<>\"0\" ORDER BY 'QID' DESC"; +$Erg = mysql_query($SQL, $con); + +// anzahl zeilen +$Zeilen = mysql_num_rows($Erg); + +if ($Zeilen==0){ + Print_Text(41); +} else { + for ($n = 0 ; $n < $Zeilen ; $n++) { + echo "

".nl2br(mysql_result($Erg, $n, "Question"))."
\n"; + echo "

".nl2br(mysql_result($Erg, $n, "Answer"))."\n"; + echo "\n
---
"; + } +} + +include ("./inc/footer.php"); +?> -- cgit v1.2.3-70-g09d2