Re: Next and Previous
| From: | Miguel Br�s | Date: | Wed, 15 Jan 2003 01:05:58 +0000 |
| Subject: | Re: Next and Previous | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131634@lists.php.net to get a copy of this message | ||
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" <shiflett@php.net> escreveu na mensagem
news:20030115003630.76514.qmail@web14303.mail.yahoo.com...
> --- Miguel Brás <molino26@netcabo.pt> 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