Re: Problem with code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 5 Dec 2004 21:05:12 -0800, Richard Kurth <rdkurth@xxxxxxxxxxxxx> wrote:
> I am having a problem with the code below it provides the first page
> with out any problem but when I select the next page it shows all the
> results from the first page and the results from the second page. It
> does the same thing on the third page also. I have been looking at it
> for two days and can not fined the error in the code

It's probably the LIMIT clause in your sql query.  Try printing the
sql query on the page and check the limit.

Or use one of the existing pagination classes from PEAR:

http://pear.php.net/package-search.php?pkg_name=page


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux