theking648 Posted August 5, 2007 Share Posted August 5, 2007 I can't find what i'm looking for!! I want a image gallery.. but when you click on the image in the gallery i want it to go to a page that is shared by all pictures... no matter what image you select it will take you to the same page but with the image that you selected. i'll draw a picture i hope this explains it... i just need a tutorial on how to do this or what to search for. and i don't want to use a database if its possible. Quote Link to comment https://forums.phpfreaks.com/topic/63470-solved-image-gallery-linking-help/ Share on other sites More sharing options...
teng84 Posted August 5, 2007 Share Posted August 5, 2007 I think searching is not a help but learning will do u search for ajax or javascript actaully there are lot of option to do this but we dont know how you want to handle this like when you click what will happen etc..... Quote Link to comment https://forums.phpfreaks.com/topic/63470-solved-image-gallery-linking-help/#findComment-316296 Share on other sites More sharing options...
theking648 Posted August 5, 2007 Author Share Posted August 5, 2007 I think searching is not a help but learning will do u search for ajax or javascript actaully there are lot of option to do this but we dont know how you want to handle this like when you click what will happen etc..... if i click img 2 i want img 2 to open on big_image.php but if i click img 4 i still want it to open on big_image.php so big_image.php is being shared... but i'm just not sure what to search for to find a tutorial on how to do this. Quote Link to comment https://forums.phpfreaks.com/topic/63470-solved-image-gallery-linking-help/#findComment-316300 Share on other sites More sharing options...
teng84 Posted August 5, 2007 Share Posted August 5, 2007 actually this is simple but with this forum we cant develop the whole code for you it may need ajax, or javasript but it can also be done using php but it refresh the page everytime you select an image if you havent learn js try http://w3schools.com/js/default.asp and if you havent learn js try http://w3schools.com/php/default.asp Quote Link to comment https://forums.phpfreaks.com/topic/63470-solved-image-gallery-linking-help/#findComment-316302 Share on other sites More sharing options...
Fadion Posted August 6, 2007 Share Posted August 6, 2007 If im getting this right, he just needs to open a new window where to show the full size image. If u're storing image filenames in db with a table header like: "id, thumbpath, fullpath" it is simple. Make the link (href) of the image to bigimage.php?id={$idOfTheImage} and in bigimage.php, use $_GET to get the id of the clicked image and with that construct a query. If you're not storing images in db then whats php there for lol. If that is the case but ure still not to clear on how to do it, jus tell and ill explain it better. Quote Link to comment https://forums.phpfreaks.com/topic/63470-solved-image-gallery-linking-help/#findComment-316364 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.