problem with PHP codes to allow user choose " items_per_page"?

hey guys.
There's something wrong with the number of results shown. It's always one short. For instance if i as the user selects 25 results shown per page, 24 records will appear. Likewise, if i choose 10, only 9 will show. I've look through the codes, trying to debug it but clearly i failed so i'd appreciate anyone who can spot where the problem is. Thanks so much!

I've pasted the codes at this blog 'cause it'd be too messy here. There are two php files. one is the class. one is the page that i'm displaying my results. I know it might seem like there's a lot of codes but I seriously hope one of you can be nice enough to go through them. I didn't exactly know which are the unimportant parts so.. yeah. Thanks again so much, i'm rushing for a project that's about to due soon. I think the problem lies with the " paginator.class.php" file.

codes : http://mcfly1111.blogspot.com/2011/01/pagination_13.html
 
Back
Top