Hi, it's giving me an error. it assumes the next page as news.php?ID=1 and the previous as news.php?ID=-1 Any hint for that?
Miguel "Chris Shiflett" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > --- Miguel Brás <[EMAIL PROTECTED]> wrote: > > suppose, the page you're seeing is > > http://www.xxxxx.com/news.php?ID=501 how to add > > a link for the page to show the ID=502 and the > > ID=500 > > <a href="news.php?ID=<? echo $_GET['ID']+1; ?>">Next</a> > > <a href="news.php?ID=<? echo $_GET['ID']-1; > ?>">Previous</a> > > Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php