title: retrieve data from db and display it in table in php .. see this code whats wrong with it?
body: <pre><code>  $db = mysql_connect("localhost", "root", "");
    $er = mysql_select_db("ram");
    $query = "insert into names values('$name','$add1','$add2','$mail')";
    $result = mysql_query($query);
    print "&lt;p&gt; Person's Information Inserted &lt;/p&gt;";
    $result = mysql_query("SELECT * FROM names");
  ?&gt;
  
  &lt;table border="2"&gt;
     &lt;tr&gt;
        &lt;th&gt;Name&lt;/th&gt;
        &lt;th&gt;Address Line 1&lt;/th&gt;
        &lt;th&gt;Address Line 2 &lt;/th&gt;
        &lt;th&gt;E-mail Id &lt;/th&gt;
      &lt;/tr&gt;
      &lt;? 
      while ($array = mysql_fetch_row($result));
      {
          print "&lt;tr&gt; &lt;td&gt;";
          echo $array[0]; 
          print "&lt;/td&gt; &lt;td&gt;";
          echo $array[1]; 
          print "&lt;/td&gt; &lt;td&gt;";
          echo $array[2]; 
          print "&lt;/td&gt; &lt;td&gt;";
          echo $array[3]; 
          print "&lt;/td&gt; &lt;/tr&gt;";
      }
  ?&gt;
  </code></pre>