PHP Classes

Bug!

Recommend this page to a friend!

      PDO Paginate  >  All threads  >  Bug!  >  (Un) Subscribe thread alerts  
Subject:Bug!
Summary:Setting page more than the available
Messages:4
Author:John Cyrus David
Date:2012-04-09 01:11:35
Update:2012-04-09 09:07:18
 

  1. Bug!   Reply   Report abuse  
Picture of John Cyrus David John Cyrus David - 2012-04-09 01:11:35
Let's say i only have 10 pages, now when I set the page to any number more than the available one, it's still outputting results.

  2. Re: Bug!   Reply   Report abuse  
Picture of Ben Griffiths Ben Griffiths - 2012-04-09 01:16:44 - In reply to message 1 from John Cyrus David
Hi John, do you mean if you change the page provided in the URL for example? I'll take a look and see if I can sort that

  3. Re: Bug!   Reply   Report abuse  
Picture of Ben Griffiths Ben Griffiths - 2012-04-09 01:20:04 - In reply to message 2 from Ben Griffiths
Hey john, I've just tested that on mine with PDO, and no results are given if you provide a page number higher than the total available, however it does generate the full pagination links.

How are you using it, PDO or MySQLi?

  4. Re: Bug!   Reply   Report abuse  
Picture of John Cyrus David John Cyrus David - 2012-04-09 09:07:18 - In reply to message 3 from Ben Griffiths
I must have edited something. Thank you!