Gallery Problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
krellee
Forum Newbie
Posts: 2
Joined: Sun Aug 24, 2008 11:56 am

Gallery Problem

Post by krellee »

Hi All
I have a clent that wants a Gallery this i've done with no problem when you click an image another page appears with a larger version of the image again no problem.

Here is the problem i have

there are 10 image thumbnails the user clicks on 5 and gets the large image how do i navigate backwards and forwards once in the large image page ive tried everthing i know but the only thing i've been able to do is have another rs on the page but when you click the next button it goes to number 1 instead of 6.

Anyhelp would be welcomed.

Best Regards
Krellee.
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Gallery Problem

Post by jaoudestudios »

Do you have a link with an example?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Gallery Problem

Post by onion2k »

It's just standard paging (pagination) with 1 thing per page.
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: Gallery Problem

Post by omniuni »

I'll mirror the above comment:

Can you link to an example/post the php you're using?

It will help us see what you need to do.
krellee
Forum Newbie
Posts: 2
Joined: Sun Aug 24, 2008 11:56 am

Re: Gallery Problem

Post by krellee »

Thanks for the Reply guys

I think the problem might be in the SQL

SELECT * FROM gallery WHERE imgID = imgID
UNION
SELECT * FROM gallery WHERE imgSection = wildlife

But here's the page.

http://www.andyhook.com/sections.php?im ... n=wildlife

once you click an image the main image comes up however when you click on next button you jump to the start of the recordset and not the image you selected
Post Reply