<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
  <head>
    <title>View topics in How-To Database</title>
  </head>

  <body>
    <h1>View topics in How-To Database</h1>
    <?php
     
require( "db_connect.php" );
     
checkDBStatus( );
     if( (
$link=mysql_pconnect($DB_HOST, $DB_USER, $DB_PW)) ) {
       if(
$res=mysql_db_query($DB_NAME, "select * from how_to", $link) ) {
         echo
"<form action=\"/PHP/db/db.php\" method=\"post\">";
         echo
"<textarea name=\"output\" rows=10 cols=50>\n";
         while(
$row = mysql_fetch_array($res, MYSQL_NUM) ) {
           
printf( "%5d %12s\n", $row[0],  $row[1] );
         }
         echo
"</textarea><BR>";
         echo
"</form><BR>";
       }
     }
    
?>
    <hr>
    <address>
    <a href="mailto&#058;Denice&#046;Deatrich&#064;epfl.ch">Denice Deatrich</a>
    </address>
<!-- Created: Sun Jan 16 17:22:34 MET 2000 -->
<!-- hhmts start -->
Last modified: Mon Mar  6 12:14:55 MET 2000
<!-- hhmts end -->
  </body>
</html>