title: Page Not Refreshing After submitting a form to update MySQL row
body: <p>When i update Mysql table using a form over php page, the page does not automaticly refreshes when i hit submit. I have to hit refresh to see the updated rows.
  i tried but this did not work either any good ideas?</p>
  
  <pre><code>&lt;META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"&gt;
  &lt;META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"&gt;
  
  ///////////////////////Edited Bottom////////////////////////////////////////////////////////
  
  &lt;?php
  
  include ("../header.php");
  include ("../header2.php");
  
  ?&gt;
  &lt;?php
  include('../config.php');
  include ('../ac.thumbs.php');
  
   if ($_GET['sil']) {
      $sil = htmlspecialchars(stripslashes($_GET['sil']));
      mysql_query("DELETE FROM CloseOut WHERE itemNO = $sil limit 1");
      echo "&lt;h1&gt;$sil item nolu kayit silinmistir&lt;/h1&gt;&lt;br&gt;";
  }
  
      $edit = htmlspecialchars(stripslashes($_GET['edit']));
   $data = mysql_query("SELECT * FROM CloseOut WHERE itemNO=$edit") or die(mysql_error()); 
  
   //Puts it into an array 
   while($info = mysql_fetch_array( $data )) 
   { echo "
  &lt;center&gt;
  &lt;a href=\"edit.php?sil=$info[itemNO]\"onclick=\"return confirm('Do you really want to erase this entry?')\"&gt;[ Delete ]&lt;/a&gt;&lt;br&gt;
  &lt;a href=../../large.php?f=upload/".$info['resim'], $thumblarge ."&gt;
  &lt;img src=../../small.php?f=upload/".$info['resim'], $thumbsmall ."&gt;
  &lt;/a&gt;";
  $editresim = $info[resim];
  $editisim = $info[isim];
  $editalan1 = $info[alan1];
  $editalan2 = $info[alan2];
  $editalan3 = $info[alan3];
  $editalan4 = $info[alan4];
  } 
  
   //Resimlerin yuklenecegin yer
   $target = "../../upload/";  
   //////////////////////////////////////////////////////////////////////
   ///////////////////////////////Resim1/////////////////////////////////
   //////////////////////////////////////////////////////////////////////
   $target1 = $target . basename( $_FILES['resim1']['name']) ; 
   //Formdan gelen bilgileri almasi icin
   $resim=($_FILES['resim1']['name']); 
   $isim=$_POST['isim1']; 
   $alan1=$_POST['alan11']; 
   $alan2=$_POST['alan21']; 
   $alan3=$_POST['alan31']; 
   $alan4=$_POST['alan41']; 
  
  
  
  /////////////Formdaki bos alanlara bos bilgi kayit etmemesi icin////////////////////////
  
  $updates = array();
  if (!empty($resim))
    $updates[] = 'resim="'.mysql_real_escape_string($resim).'"';
  if (!empty($isim))
    $updates[] = 'isim="'.mysql_real_escape_string($isim).'"';
  if (!empty($alan1))
    $updates[] = 'alan1="'.mysql_real_escape_string($alan1).'"';
  if (!empty($alan2))
    $updates[] = 'alan2="'.mysql_real_escape_string($alan2).'"';
  if (!empty($alan3))
    $updates[] = 'alan3="'.mysql_real_escape_string($alan3).'"';
  if (!empty($alan4))
    $updates[] = 'alan4="'.mysql_real_escape_string($alan4).'"';
  $updates = implode(', ', $updates);
  
  
  /////////////////////////////////////////////////////////////////////////////////////////
   //update etmesi icin
  if(move_uploaded_file($_FILES['resim1']['tmp_name'], $target1)) 
  {   
  mysql_query("UPDATE CloseOut SET $updates WHERE itemNO='$edit' ");
  echo "Tebrikler, ". basename( $_FILES['resim1']['name']). " isimli dosya yuklendi ve database'e basariyla islendi!&lt;br&gt;"; 
   } 
  
  
  
  
  ?&gt;
  
  &lt;br&gt;
  &lt;center&gt; 
  &lt;table width="900" border="5" style="background-color:white; "bordercolor="#000000"&gt;
      &lt;tr&gt;
          &lt;td width="120" height="50" bgcolor= "545454"&gt;&lt;b&gt;RESIM&lt;/b&gt;&lt;/td&gt;
          &lt;td width="120" height="50" bgcolor= "545454"&gt;&lt;b&gt;NAME&lt;/b&gt;&lt;/td&gt;
          &lt;td width="120" height="50" bgcolor= "545454"&gt;&lt;b&gt;CATAGORY&lt;/b&gt;&lt;/td&gt;
          &lt;td width="120" height="50" bgcolor= "545454"&gt;&lt;b&gt;QUANTITY&lt;/b&gt;&lt;/td&gt;
          &lt;td width="120" height="50" bgcolor= "545454"&gt;&lt;b&gt;LOCATION&lt;/b&gt;&lt;/td&gt;
          &lt;td width="120" height="50" bgcolor= "545454"&gt;&lt;b&gt;PRICE&lt;/b&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
  &lt;form enctype="multipart/form-data" method="post" action=""&gt;
  &lt;td&gt;&lt;input type="file" name="resim1" value="&lt;?php echo $editresim;?&gt;"&gt; &lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="isim1" value="&lt;?php echo $editisim;?&gt;"&gt; &lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="alan11" value="&lt;?php echo $editalan1;?&gt;"&gt; &lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="alan21" value="&lt;?php echo $editalan2;?&gt;"&gt;  &lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="alan31" value="&lt;?php echo $editalan3;?&gt;"&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="alan41" value="&lt;?php echo $editalan4;?&gt;"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;td colspan="6"&gt;&lt;center&gt;&lt;input type="submit"&gt;&lt;/center&gt;&lt;/td&gt;
  
  
  &lt;/form&gt;
  &lt;/table&gt;
  &lt;/center&gt;
  </code></pre>