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? Quote 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'] Quote Link to comment https://forums.phpfreaks.com/topic/53354-solved-prevnext-links/#findComment-263682 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.