Jump to content

Archived

This topic is now archived and is closed to further replies.

corillo181

confused

Recommended Posts

ok, i get this gallery dis play wich let the user select from 16 photo by page.. if the user click on one foto i'm trying to give them the option to navegate the picture one by one..

all of this work fine tha tonly problem is tha tno matter witch photo the user click on, they are sent to the firs tone and from there they can navegate all the pictures..

i want them to be able if the click on any picture that thy are sent to that picture and they can keep navagating from there on, not start from the first one.. this is what i'm trying to do in code..
[code]
<a href=\"cfv.php?m=".$info['cotm_id']."&foto=".$path['photo_id']."&p='".$_GET['p']."'\">
[/code]

the problem is that the $_get['p'] is located on the second page that they are able to navegate one by one..

so i need a way that when the click to go to that picture they are sent to that one..

complicated?

jus tlok at any gallery and when you click on a theme you get all those picture in that them in some amount of pages when you click on just one they give you the option to keep looking at all the picture one by one..

Share this post


Link to post
Share on other sites
I'm also confused I must say. First of all why is '".$_GET['p']."' in triple quotes. it only needs ".$_GET['p'].". Second, what is the issue exactley? you want it to find the page the item is on, or use the $_get['p'] variable when it isn't set. What exactly is the problem.

Share this post


Link to post
Share on other sites
[!--quoteo(post=383425:date=Jun 13 2006, 02:09 PM:name=Richard181)--][div class=\'quotetop\']QUOTE(Richard181 @ Jun 13 2006, 02:09 PM) [snapback]383425[/snapback][/div][div class=\'quotemain\'][!--quotec--]
ok, i get this gallery dis play wich let the user select from 16 photo by page.. if the user click on one foto i'm trying to give them the option to navegate the picture one by one..

all of this work fine tha tonly problem is tha tno matter witch photo the user click on, they are sent to the firs tone and from there they can navegate all the pictures..

i want them to be able if the click on any picture that thy are sent to that picture and they can keep navagating from there on, not start from the first one.. this is what i'm trying to do in code..
[code]
<a href=\"cfv.php?m=".$info['cotm_id']."&foto=".$path['photo_id']."&p='".$_GET['p']."'\">
[/code]

the problem is that the $_get['p'] is located on the second page that they are able to navegate one by one..

so i need a way that when the click to go to that picture they are sent to that one..

complicated?

jus tlok at any gallery and when you click on a theme you get all those picture in that them in some amount of pages when you click on just one they give you the option to keep looking at all the picture one by one..
[/quote]


<a href=picture.php?p=(name)><img scr=......></a>

that will work
then on the next page put <img scr=$_GET['p']>

Share this post


Link to post
Share on other sites
[!--quoteo(post=383523:date=Jun 13 2006, 05:40 PM:name=joquius)--][div class=\'quotetop\']QUOTE(joquius @ Jun 13 2006, 05:40 PM) [snapback]383523[/snapback][/div][div class=\'quotemain\'][!--quotec--]
is $_GET['p'] not the page?
[/quote]

$_GET['p'] will retrieve anything in example.com?p=(here) in your address bar!

Share this post


Link to post
Share on other sites
yeah of course but I think this specific code takes it as the page in the result, what was it refering to?

Share this post


Link to post
Share on other sites

×

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.