tiro su questa discussione...Originariamente inviato da piero.mac
prova con UNION.
ottieni tre record:codice:(select id from tabella where id < $tuo_id order by id desc limit 1) UNION (select id from tabella where id >= $tuo_id order by id asc limit 2)
id previus
id corrente
id next
come li stampo a video questi tre record??![]()