title: Changing Serial Number in pagination
body: <p>I am using this code for serial numbers in my table with pagination: </p>
  
  <pre><code>$number = 1
  echo "&lt;td&gt;  ". $number++ ." &lt;/td&gt;";
  </code></pre>
  
  <p>But the problem is, When i change the page number, it starts from 1 again.</p>
  
  <p>I am using <code>"?page=x"</code> for pagination. </p>
  
  <p>So, if i have 5 records in ?page=1, then the serial number should start from 6 in page number 2. </p>
  
  <p>How to make it do so?</p>
  
  <p>I cannot use unique id from MySQL, because, i deleted some of my records in between, and the unique id numbers are something like this "1,2,3,5,6,8,10"</p>