<html><body>
 <?php
   require("teatekonf.php");
   if(isSet($teatesisu)){
    mysql_connect($masin, $kasutajanimi, $parool);
    mysql_select_db($baasinimi);
    $vastus=mysql_query("SELECT teade FROM teated1");   
    if($vastus){
      echo "<h2>Teated</h2>\n";
      while($rida=mysql_fetch_array($vastus)){
        echo $rida["teade"]."<br>\n";
      }
    }
    mysql_close();
   }
 ?>
</body></html>