Suchy Posted May 29, 2007 Share Posted May 29, 2007 On my site I display 1 photo at a time, the url is like: ...photo.php?id=2 ...photo.php?id=3 ...photo.php?id=4 ..... I would like to have links on the photo.php page to the preious and next photo. So far I have something like: <a href="<?php print ($_SERVER['PHP_SELF'] . "?id=" . ) ; ?>"> next</a> How can I read the current id from the url so that I can use it in the link script? Link to comment https://forums.phpfreaks.com/topic/53354-solved-prevnext-links/ Share on other sites More sharing options...
dustinnoe Posted May 29, 2007 Share Posted May 29, 2007 $_GET['id'] Link to comment https://forums.phpfreaks.com/topic/53354-solved-prevnext-links/#findComment-263682 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.