title: How to refresh the page in php after displaying alert
body: <p>I am updating the records using php/mysql. and after all is done .
   I run this code for user confirmation about the activity.</p>
  
  <pre><code>        echo '&lt;script language="javascript"&gt;';
          echo 'alert("We Have credited your account")';
          echo '&lt;/script&gt;';
  </code></pre>
  
  <p>How Do i refresh the page so that once user clicks ok, it will refresh all the details again and should display users with new values from the db.</p>
  
  <p>If I use this right after the alert.</p>
  
  <pre><code>header('Location: '.$_SERVER['REQUEST_URI']);
  </code></pre>
  
  <p>It does not displays the alert message and simply refreshes the page.</p>