karq Posted January 27, 2010 Share Posted January 27, 2010 I'm stuck on this. How can I make so that when I click the pic thumbnail, then it links to the right large pic in the gallery? Right now it links to the first pic in the gallery. Link to comment https://forums.phpfreaks.com/topic/189990-php-gallerys-next-page/ Share on other sites More sharing options...
jl5501 Posted January 27, 2010 Share Posted January 27, 2010 If you could supply samples of the code you are running, then we could help you Link to comment https://forums.phpfreaks.com/topic/189990-php-gallerys-next-page/#findComment-1002372 Share on other sites More sharing options...
karq Posted January 27, 2010 Author Share Posted January 27, 2010 Here are the thumbnails http://pastebin.com/m240d44f6 This is the gallery page with large images http://pastebin.com/m1ee5d16e How to point to the right image in the gallery, when I click the thumbnail. Link to comment https://forums.phpfreaks.com/topic/189990-php-gallerys-next-page/#findComment-1002560 Share on other sites More sharing options...
jl5501 Posted January 28, 2010 Share Posted January 28, 2010 Ok your row you are getting from the database on the thumbs page, I assume has an ID of some sort. So when you have the a href ='sGallery.php' you need it to say a href ='sGallery.php?id=puttheidoftherowhere' and on the gallery page. you need to get the same id in your select statement. and show the main image Link to comment https://forums.phpfreaks.com/topic/189990-php-gallerys-next-page/#findComment-1002731 Share on other sites More sharing options...
karq Posted February 8, 2010 Author Share Posted February 8, 2010 ok now it links to the right image, but now I have another problem. When I click on the thumbnail and it redirects to the right image then it shows that the images is on the first gallery page not on the page where it originally is. A illustrative pic http://www.upload.ee/image/387877/pilt.jpg sgallery.php CODE http://pastebin.com/me333271 How to solve this? Link to comment https://forums.phpfreaks.com/topic/189990-php-gallerys-next-page/#findComment-1008842 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.