Jump to content

Recommended Posts

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

 

example.jpg

 

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.

Link to comment
https://forums.phpfreaks.com/topic/63470-solved-image-gallery-linking-help/
Share on other sites

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.

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

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.