Jump to content

Archived

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

corillo181

links

Recommended Posts

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..
[code]
<a href=\"cfv.php?m=".$info['cotm_id']."&p=$i\">
[/code]
on the big picture i got this query
[code]
$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());
[/code]

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?

Share this post


Link to post
Share on other sites
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?

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.