title: Only changes after I refresh page! (modal Bootstrap)
body: <p>I have a page with a auction product. When press byd (bid) it opens a bootstrap modal. Then i change the amount. Press button. it closes the modal but dont update amount before i refresh page. Any idea how to make it refresh. Have tried all similar questions. But when i use javascript it just loops. Maybe I dont know where to input it. (I dont sell hippos :-) ) Thx in advance. Here is the code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="da"&gt;
  &lt;head&gt;
  &lt;meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1?&gt;
  &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
  &lt;meta name="description" content=""&gt;
  &lt;meta name="author" content=""&gt;
  &lt;link rel="shortcut icon" href="../../docs-assets/ico/favicon.png"&gt;
  &lt;title&gt;Produkt&lt;/title&gt;
  &lt;link href="css/bootstrap.min.css" rel="stylesheet"&gt;
  &lt;link href="css/style.css" rel="stylesheet"&gt;
  &lt;link rel="stylesheet" type="text/css" href="css/jquery.countdown.css"&gt; 
  &lt;script src="//code.jquery.com/jquery.js"&gt;&lt;/script&gt;
  &lt;script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="js/jquery.plugin.js"&gt;&lt;/script&gt; 
  &lt;script type="text/javascript" src="js/jquery.countdown.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="js/jquery.countdown-da.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;?php include "config.php" ?&gt;
  
  &lt;?php
  $antal = $db-&gt;query('SELECT * FROM produkt');
  $row_count = $antal-&gt;rowCount(); ?&gt;
  &lt;p&gt;Produkter i DB &lt;span class="badge"&gt;&lt;?php echo "$row_count" ;?&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;?php 
  $bruger = 2;
  $sql = "SELECT bruger.brugerNavn, produkt.produktID, produkt.produktNavn, produkt.produktPris,     produkt.dato, produkt.produktBeskrivelse
  FROM bruger
  LEFT JOIN produkt
  ON bruger.brugerID=produkt.brugerID WHERE bruger.brugerID = $bruger";
  $stmt = $db-&gt;query($sql); 
  $row = $stmt-&gt;fetch(PDO::FETCH_ASSOC);
  $opretdato = $row['dato'];
  $slutdato = date('Y, n, j, G, i, s',strtotime($opretdato));
  ?&gt;
  &lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          $('#defaultCountdown').countdown({
              until: new Date(&lt;?php echo $slutdato; ?&gt;)
          });
      });
  &lt;/script&gt;
  &lt;div class="container"&gt;
      &lt;div class="panel panel-default"&gt;
          &lt;div class="panel-heading"&gt;
              &lt;h2&gt;&lt;?php echo $row['produktNavn']?&gt;&lt;/h2&gt;
          &lt;/div&gt;
          &lt;div class="panel-body"&gt;
              &lt;div class="col-md-6 col-lg-6"&gt;
                  &lt;div&gt;
                      &lt;h3&gt;Beskrivelse&lt;/h3&gt;
                  &lt;/div&gt;
                  &lt;div class="panel panel-default"&gt;
                      &lt;div class="panel-body"&gt;
                          &lt;p&gt;&lt;?php echo $row['produktBeskrivelse'] ?&gt;&lt;/p&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="panel panel-default"&gt;
                      &lt;div class="panel-body" style="padding-top:6px;"&gt;
                          &lt;?php
                          $num = $row['produktPris'];
                          $produktPris = number_format($num,0,",",".");
                          ?&gt;
                          &lt;div class="col-sm-6 col-md-6 col-lg-6"&gt;
                              &lt;h1&gt;Kr.&lt;?php echo $produktPris ?&gt;,-&lt;/h1&gt;
                          &lt;/div&gt;
                          &lt;div class="col-md-6 col-lg-6"&gt;&lt;/br&gt;
                              &lt;button type="button" class="btn btn-lg btn-success" data-toggle="modal" data-target="#myModal"&gt;BYD&lt;/button&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div id="defaultCountdown" class="well"&gt;&lt;/div&gt; 
              &lt;/div&gt;
              &lt;div class="col-sm-6 col-md-6 col-lg-6"&gt;
                  &lt;img src="https://c2.staticflickr.com/4/3081/3155407697_366c9f1677.jpg" class="img- responsive" alt="Image"&gt;
  
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
      &lt;div class="modal-dialog"&gt;
          &lt;div class="modal-content"&gt;
              &lt;div class="modal-header"&gt;
                  &lt;button type="button" class="close" data-dismiss="modal"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;span class="sr-only"&gt;Close&lt;/span&gt;&lt;/button&gt;
                  &lt;h1 class="modal-title" id="myModalLabel"&gt;&lt;?php echo $row['produktNavn']?&gt;&lt;/h1&gt;
              &lt;/div&gt;
              &lt;div class="modal-body"&gt;
                  &lt;div class="well"&gt;
                      &lt;h1 class="text-center"&gt;Kr.&lt;?php echo $produktPris ?&gt;,-&lt;/h1&gt;
                  &lt;/div&gt;
                  &lt;label for="indtastbud"&gt;Byd&lt;/label&gt;
                  &lt;form action="" method="POST"&gt;
                      &lt;input type="number" name="bud" class="form-control" id="exampleInputPassword1" min="&lt;?php echo ($num + 1)?&gt;" value="&lt;?php echo ($num + 1) ?&gt;"&gt;
  
  
                  &lt;/div&gt;
                  &lt;div class="modal-footer"&gt;
                      &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Annuler&lt;/button&gt;
                      &lt;button type="submit" value="bud" class="btn btn-primary"&gt;BYD&lt;/button&gt;
                  &lt;/div&gt;
  
              &lt;?php
              $sql = "UPDATE produkt SET produktPris = :produktPris
              WHERE produktID = :produktID";
              $produktID = $row['produktID'];
              $stmt = $db-&gt;prepare($sql);                                  
              $stmt-&gt;bindParam(':produktPris', $_POST['bud'], PDO::PARAM_STR);
              $stmt-&gt;bindParam(':produktID', $produktID, PDO::PARAM_STR); 
              $stmt-&gt;execute();
              ?&gt;
              &lt;/form&gt;
  
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>