title: Increase infinite scrolling pagination offset in sql query when multiple users insert new comments
body: <p>Ajax infinite scrolling loads comments from a PHP script. The PHP script increases a variable <code>$load++</code> for each comment. Then is used in the sql <code>OFFSET $load</code> and sends it back in a div to AJAX in the success function, the users scrolls again the value of the variable is send to PHP again it retrieves the next set of comments, this works, but:</p>
  
  <p>If multiple users comment on that post the offset variable <code>$load</code> dose not increment and if a user scrolls now and triggers the AJAX script the new comments are not loaded instead the last comment is duplicated since the <code>offset</code> has not change.</p>
  
  <p>Is there a better way to set that <code>offset</code> variable, or am I doing this wrong? What are the better ways for this kind of pagination? What method should i use so the scripts loads the next new comments if there are any?</p>