title: Header is not working
body: <p>My header is not working.</p>
  
  <pre><code>&lt;?php 
  $name = mysql_prep($_POST['name']);
  $pastor = mysql_prep($_POST['pastor']);
  $head = mysql_prep($_POST['head']);
  $schedule = mysql_prep($_POST['schedule']);
  $venue = mysql_prep($_POST['venue']);
  $id = mysql_prep($_GET['ministryid']);
  $errors = array();
  
      $required_field = array('name', 'pastor', 'address', 'schedule', 'venue');
      foreach ($required_field as $fieldname) {
      if(!isset($_POST[$fieldname]) || empty($_POST[$fieldname])) {
          $errors[] = $fieldname;
          echo "Sorry, you missed to complete {$fieldname} &lt;br /&gt;";
          }
      else {
          $query = "UPDATE ministry SET
          name = '{$name}', 
          pastor = '{$pastor}', 
          head = '{$head}', 
          schedule = '{$schedule}',
          venue = '{$venue}'
          WHERE id = {$id}";
  
          mysql_query($query);
          if(mysql_affected_rows() == 1) {                 
              header('location: editministry.php?');
              exit;
          } else {
              echo "Updating Failed on {$s_ministry['name']} &lt;b /&gt;".mysql_error();
              exit;
          }
      }
      }
  
  require_once("include/footer.php");
  </code></pre>
  
  <p>Every time I have successful update, the link change its address.</p>
  
  <p>For example, when I'm updating <code>id = 3</code>, the address will change to editministry.php?ministryid=3.</p>