Credit Card Consolidation - Personal Car Finance - Outsource - Myspace Layouts - Freelance

PDA

View Full Version : Photo Gallery help for Newbie


camdes
Apr 28th 2008, 1:00 pm
Excuse the complete newbie question.

I am building a photo gallery using PHP and MySQL. I have the thumbnail page and the large photo page and when I show one of the photographs I wish to put a "next" and "previous" link on the page. Do I need to put these in a form so that I can send the id of the photograph to the next page to query the database for the next or previous photo.

Louis11
Apr 28th 2008, 1:41 pm
You can send this info via a link.

For example: photo_gallery.php?photoID=4

Make sure you strip the tags on this get request, however, as it could lead to XSS in your web application.

Cheers,
Louis

PowerExtreme
Apr 28th 2008, 2:05 pm
use the GET function