Jump to content


Photo

links


  • Please log in to reply
1 reply to this topic

#1 corillo181

corillo181
  • Members
  • PipPipPip
  • Advanced Member
  • 896 posts

Posted 16 June 2006 - 01:18 AM

alright so i have links on pictures.. the only thing is that i got those picture sin different pages.. like 16 pictures divaded by 4.. so is 4 pages..

the problem is that i got it set up so when someone click on th epictures it show th epicture in full size..

now i'm using this to link the picture..
<a href=\"cfv.php?m=".$info['cotm_id']."&p=$i\">
on the big picture i got this query
$query2=mysql_query("SELECT path,photo_id FROM tra_cotm_photo WHERE cotm_id='".$_GET['m']."' ORDER BY photo_id DESC LIMIT $cut,$max_pic")or die(mysql_error());

now th eonly proble is that only on my first page the pictures show up.. like the first four pictures shows.. then if someone click on the next page and click on any picture, it show the person one of the four first pictues.. like if the person click on the second picture of page 2, it shows the second picture of page 1.. if the person click on photo 4 from page 2, it shows the 4th photo of page one.. and its jus tlike that only shows the first page of picture in big..

does any one understand?

#2 joquius

joquius
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 16 June 2006 - 07:44 AM

should the link not be the photo_id if possible? what's cotm_id?
Can you post the html output of the links from both pages?
z..z..z..z..z..z..z..z..




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users