title: How to make a progressbar for a MySQL query
body: <p>I need to send around 500 emails with <code>mail()</code>. It takes 500 loops. </p>
  
  <p>How can I echo the percentage of the progression?</p>
  
  <pre><code>$percentage=55; //which changes every time it enters loop.
  
  &lt;div id="percentage" style="width:&lt;?php echo $percentage;?&gt;%&gt;&lt;/div&gt; 
  </code></pre>