title: MySql paging; "Showing result-set" of "total found" help
body: <p>I need a formula for showing results on my classifieds website.</p>
  
  <p>I am now done with the paging of records, but this formula for showing results remains.</p>
  
  <p>I want it like this:</p>
  
  <pre><code>  Showing 1-50 of 123 found.
  </code></pre>
  
  <p>Now what is the formula for this?</p>
  
  <p>I have these variables which should be enough I think:</p>
  
  <pre><code>  $results_per_page = 50; //results per page
    $page = 1; //current page
    Also a variable called $num_total contains the total nr of hits, in this case 123.
  </code></pre>
  
  <p>Thanks</p>