<HTML><HEAD><TITLE>Linux-FAQ</TITLE></HEAD><BODY>
<h1>Linux-FAQ</h1>
<?
 if (! $id) {
   echo "<h2>Die folgenden Informationen stammen aus den Diskussionen in unseren Mailinglisten.";
   echo " Es sind also nicht immer nur unsere Tipps und Hinweise!</h2>";
   mysql_connect("localhost", "linux", "lin4gyl");
   $result=mysql_db_query("linux", "SELECT * FROM faq");
   $anzahl=mysql_numrows($result);
   if ($anzahl == 0):
     echo "Es liegen bisher keine Eintr&auml;ge vor";
   else:
     for ($i=0;$i<$anzahl;$i++) {
       $id=mysql_result($result, $i, "id");
       $datum=mysql_result($result, $i, "datum");
       $frage=mysql_result($result, $i, "frage");
       $titel=mysql_result($result, $i, "titel");
       $frage=substr($frage, 0, 100);
 #      echo "Datensatz $id: ";
       echo "<a href=\"faq.php3?id=$id\">$titel</a><br>";
     }
   endif;
 } else {
   mysql_connect("localhost", "linux", "lin4gyl");
   $result=mysql_db_query("linux", "SELECT * FROM faq WHERE id='$id'");
   $anzahl=mysql_numrows($result);
   if ($anzahl == 0):
     echo "Es liegt kein passender Eintr&auml;g vor";
   else:
     $id=mysql_result($result, 0, "id");
     $datum=mysql_result($result, 0, "datum");
     $frage=mysql_result($result, 0, "frage");
     $frage= ereg_replace("\n", "<br>", $frage);
     $antwort=mysql_result($result, 0, "antwort");
     $antwort=ereg_replace("\n", "<br>", $antwort);
     $titel=mysql_result($result, 0, "titel");
     echo "<h2>$titel</h2>";
     echo "<b>Frage/Problem</b><br>$frage<p>";
     echo "<b>Antwort</b><br>$antwort<hr>";
     echo "<FONT SIZE=-1>Datensatz $id: vom $datum</FONT>";
   endif;

 }
?>
<hr>
<FONT SIZE=-1>betreut von Bernd Burre und Uwe Debacher</FONT>
</BODY></HTML>
