Jump to content


Photo

confused


  • Please log in to reply
5 replies to this topic

#1 corillo181

corillo181
  • Members
  • PipPipPip
  • Advanced Member
  • 896 posts

Posted 13 June 2006 - 07:09 PM

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..
<a href=\"cfv.php?m=".$info['cotm_id']."&foto=".$path['photo_id']."&p='".$_GET['p']."'\">

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..

#2 joquius

joquius
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 13 June 2006 - 08:10 PM

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.
z..z..z..z..z..z..z..z..

#3 legohead6

legohead6
  • Members
  • PipPipPip
  • Advanced Member
  • 434 posts

Posted 13 June 2006 - 10:33 PM

[!--quoteo(post=383425:date=Jun 13 2006, 02:09 PM:name=Richard181)--][div class=\'quotetop\']QUOTE(Richard181 @ Jun 13 2006, 02:09 PM) View Post[/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..
<a href=\"cfv.php?m=".$info['cotm_id']."&foto=".$path['photo_id']."&p='".$_GET['p']."'\">

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']>
"Syntax error" .. WHERE THE **** IS IT?!

#4 joquius

joquius
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 13 June 2006 - 10:40 PM

is $_GET['p'] not the page?
z..z..z..z..z..z..z..z..

#5 legohead6

legohead6
  • Members
  • PipPipPip
  • Advanced Member
  • 434 posts

Posted 13 June 2006 - 11:10 PM

[!--quoteo(post=383523:date=Jun 13 2006, 05:40 PM:name=joquius)--][div class=\'quotetop\']QUOTE(joquius @ Jun 13 2006, 05:40 PM) View Post[/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!
"Syntax error" .. WHERE THE **** IS IT?!

#6 joquius

joquius
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 14 June 2006 - 07:30 AM

yeah of course but I think this specific code takes it as the page in the result, what was it refering to?
z..z..z..z..z..z..z..z..




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users