"SELECT * FROM Table WHERE Rec_id > $recid LIMIT 1" always bring you the
next record no matter the Rec_id is.

HTH

Jayme.

-----Mensagem Original-----
De: Adv. Systems Design <[EMAIL PROTECTED]>
Para: <[EMAIL PROTECTED]>
Enviada em: terça-feira, 20 de fevereiro de 2001 11:41
Assunto: [PHP-DB] retrieval of NEXT, PREV records


> I have set up links to browse records one by one,
> using (ID+1) for NEXT and (ID-1) for PREV...the only
> problem is that if there is a hole in the ID sequence
> (as from DELETION), there is no record returned...How
> can I have it so that the 'holes' are paved over and
> not returned?
>
> TIA
>
> Luis
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year!  http://personal.mail.yahoo.com/
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to