Thanks for your post.
I managed it.
Something like you posted, but i think that i couldn't get the selected record with that, so i got something like this:
#to keep incrementing $y when navitating the pages
if(!$y){$y=0;}
do {
$y++;
echo $row_fotos['foto'];
}while($row_fotos = mysql_fetch_assoc($fotos));
when get to page 2:
page.php?foto=<?php echo $y;?>
at the second page i make the same query but the LIMIT is:
LIMIT $y, 1
then i have what i want and ready no navigate next and previous records 😃