corillo181 Posted June 13, 2006 Share Posted June 13, 2006 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 Link to comment https://forums.phpfreaks.com/topic/11908-confused/ Share on other sites More sharing options...
joquius Posted June 13, 2006 Share Posted June 13, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/11908-confused/#findComment-45197 Share on other sites More sharing options...
legohead6 Posted June 13, 2006 Share Posted June 13, 2006 [!--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 workthen on the next page put <img scr=$_GET['p']> Quote Link to comment https://forums.phpfreaks.com/topic/11908-confused/#findComment-45269 Share on other sites More sharing options...
joquius Posted June 13, 2006 Share Posted June 13, 2006 is $_GET['p'] not the page? Quote Link to comment https://forums.phpfreaks.com/topic/11908-confused/#findComment-45272 Share on other sites More sharing options...
legohead6 Posted June 13, 2006 Share Posted June 13, 2006 [!--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! Quote Link to comment https://forums.phpfreaks.com/topic/11908-confused/#findComment-45284 Share on other sites More sharing options...
joquius Posted June 14, 2006 Share Posted June 14, 2006 yeah of course but I think this specific code takes it as the page in the result, what was it refering to? Quote Link to comment https://forums.phpfreaks.com/topic/11908-confused/#findComment-45398 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.