adodb paging problem

From: Date: Fri, 25 Feb 2005 23:04:47 +0000
Subject: adodb paging problem
Groups: php.general 
Request: Send a blank email to php-general+get-209465@lists.php.net to get a copy of this message
i've searched on the internet about my problem that i have, and ended up with nothing. i believe some of u guys have faced this problem before. here is the problem: i have a table for books, and want to display it using adodb-pager. this is my select state: select * from books where booktitle like '%php%'; so I call the ADODB_Pager constructor: $pager = new ADODB_Pager($db,$qr1,'books',true); i limited the books that i want to display by setting the $pager->Render($rows=5); ------------------------------------------- |< << 1 2 >> >| [header] ------------------------------------------- ISBN | Title | Author | ........... ........... but when i click the next button (>>), header becomes ------------------------------------------- |< << 1 2 3 >> >| [header] ------------------------------------------- ISBN | Title | Author | ........... ........... it becomes 3 pages instead of 2. is it related to adodb-session? i use my own session class. any help would be appreciated... ^_^ thanks! __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

« previous php.general (#209465) next »