PDA

View Full Version : Thumbnail Viewer II paging with php/sql



jheerkens
07-13-2008, 12:45 PM
1) Script Title: Thumbnailviewer II

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm

3) Describe problem:

First I want to say how much I like the Thumbnail Viewer II script. I'm using it for multiple sites and it's the best script for portfolio sites I've ever come across.
But for the next site I'm taking the script to the next level, trying to use a database for storing all the images, titles and descriptions. It works fine (script and other coding is attached), but now I want to insert paging. After nine (only if there are more than that number) thumbnails I want an image (arrow) to go to the next set of nine thumbnails and there should appear an image in front of the other thumbnails back to the first set. etc. etc. In fact a basic paging system.

Can anyone help me with this?

Thanks,

Jaap

Nile
07-13-2008, 03:47 PM
You may want to use a pagination script:
Learn about pagination here (http://en.wikipedia.org/wiki/Pagination).
And now a few tutorials/scripts:
http://www.sitepoint.com/article/perfect-php-pagination
http://php.about.com/od/phpwithmysql/ss/php_pagination.htm
http://www.tutorialized.com/tutorial/Pagination-with-PHP/6925
I hope this helps.