title: show page numbering in PHP
body: <p>I am using this coed in PHP to show next and previous buttons for records in a mysql database:</p>
  
  <pre><code>$sql="SELECT * from customer";
  $rs=mysql_query($sql,$conn) or die(mysql_error());
  $MaxRowsPerPage = 25;
  $total_records = mysql_num_rows($rs);
  $total_pages = ceil($total_records / $MaxRowsPerPage);
  if(isset($_GET["page"])) {
      $page  = $_GET["page"];
  } else {
      $page=1;
  }
  $start_from = ($page-1) * $MaxRowsPerPage;
  $sql.=" LIMIT $start_from, $MaxRowsPerPage";
  </code></pre>
  
  <p>I am echoing <code>$total_records</code> to show the total amount, how can i show the number from and to on the current page. for example, on page 1 it will be showing records <em>1 to 25</em> (because max rows per page is 25) and then page 2 will be showing records <em>26 to 50</em> and so on...</p>