title: Why does my output wont update when i hit the update button? any suggestions and codes about this?
body: <p>Why does my output wont update what seems to be the problem? sorry im just new in php can someone help in this?and i want to make a search bar not a dropdown menu im so frustrated in this codes help please </p>
  
  <pre><code>Childs Name:&lt;?php
      $name= mysql_query("select * from persons ORDER BY name");
  
  echo '&lt;select name="name" id="user" class="textfield1"&gt;';
   while($res= mysql_fetch_assoc($name))
  {
  echo '&lt;option value="'.$res['id'].'"&gt;';
  echo $res['name'];
  echo'&lt;/option&gt;';
  }
  
  echo'&lt;/select&gt;';
  ?&gt;
  &lt;/div&gt;
  &lt;br /&gt;
  &lt;div style="margin-left: 97px;"&gt;information:
    &lt;input name="name" type="text" value="" /&gt;&lt;/div&gt;
  &lt;div style="margin-left: 127px; margin-top: 14px;"&gt;&lt;input name="" type="submit" value="Update" /&gt;&lt;/div&gt;
  </code></pre>
  
  <p>
  </p>
  
  <p>My table</p>
  
  <pre><code>&lt;div class="content" id="registry"&gt;&lt;br&gt;&lt;br&gt;
  &lt;table width="100%"&gt;
  &lt;tr class="head"&gt;
  &lt;th&gt;Date of entry&lt;/th&gt;
  
  &lt;th&gt;Date of Baptisim&lt;/th&gt;
  &lt;th&gt;Name of the Child&lt;/th&gt;
  
  &lt;th&gt;Birthday&lt;/th&gt;
  &lt;th&gt;Mother&lt;/th&gt;
  &lt;th&gt;Father&lt;/th&gt;
  &lt;th&gt;Mother's Address&lt;/th&gt;
  &lt;th&gt;Father's Address&lt;/th&gt;
  &lt;th&gt;Current Address&lt;/th&gt;
  &lt;th&gt;Ninong/Ninang&lt;/th&gt;
  
  &lt;th&gt;Amount Paid&lt;/th&gt;
  &lt;th&gt;Priest&lt;/th&gt;
  &lt;/tr&gt;
  &lt;?php
  
  $sql=mysql_query("select * from persons ORDER BY name");
  $i=1;
  while($row=mysql_fetch_array($sql))
  {
  $da=$row['da']; 
  $entry=$row['entry'];
  $name=$row['name'];
  
  $bday=$row['bday'];
  $mot=$row['mot'];
  $fat=$row['fat'];
  $motadd=$row['motadd'];
  $fatadd=$row['fatadd'];
  $ca=$row['ca'];
  $nn=$row['nn'];
  $paid=$row['paid'];
  $priest=$row['priest'];
  if($i%2)
  
  {
  ?&gt;
  &lt;tr id="&lt;?php echo $id; ?&gt;" class="edit_tr"&gt;
  &lt;?php } else { ?&gt;
  &lt;tr id="&lt;?php echo $id; ?&gt;" bgcolor="#f2f2f2" class="edit_tr"&gt;
  &lt;?php } ?&gt;
  &lt;td class="edit_td"&gt;
  &lt;span class="text"&gt;&lt;?php echo $da; ?&gt;&lt;/span&gt; 
  &lt;/td&gt;
  
  &lt;td&gt;
  &lt;span class="text"&gt;&lt;?php echo $entry; ?&gt;&lt;/span&gt;
  &lt;/td&gt;
  
  &lt;td&gt;
  &lt;span class="text"&gt;&lt;?php echo $name; ?&gt;&lt;/span&gt;
  &lt;/td&gt;
  &lt;td&gt;
  &lt;span class="text"&gt;&lt;?php echo $bday; ?&gt;&lt;/span&gt;
  &lt;/td&gt;
  &lt;td&gt;
  &lt;span class="text"&gt;&lt;?php echo $mot; ?&gt;&lt;/span&gt;
  &lt;/td&gt;
  &lt;td&gt;
  &lt;span class="text"&gt;&lt;?php echo $fat; ?&gt;&lt;/span&gt;
  &lt;/td&gt;
  &lt;td&gt;
  &lt;span class="text"&gt;&lt;?php echo $motadd; ?&gt;&lt;/span&gt;
  &lt;/td&gt;
  &lt;td&gt;
  &lt;span class="text"&gt;&lt;?php echo $fatadd; ?&gt;&lt;/span&gt;
  &lt;/td&gt;
  &lt;td&gt;
  &lt;span class="text"&gt;&lt;?php echo $ca; ?&gt;&lt;/span&gt;
  &lt;/td&gt;
  &lt;td&gt;
  &lt;span class="text"&gt;&lt;?php echo $nn; ?&gt;&lt;/span&gt;
  &lt;/td&gt;
  
  &lt;td&gt;
  &lt;span class="text"&gt;&lt;?php echo $paid; ?&gt;&lt;/span&gt;
  &lt;/td&gt;
  &lt;td&gt;
  &lt;span class="text"&gt;&lt;?php echo $priest; ?&gt;&lt;/span&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;?php
  $i++;
  }
  ?&gt;
  
  &lt;/table&gt;
  </code></pre>