Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/04/2008, 17:37
hernandos
 
Fecha de Ingreso: junio-2007
Ubicación: por ahi
Mensajes: 262
Antigüedad: 16 años, 10 meses
Puntos: 4
Re: como obtener el siguiente y el anterior registro de un registro especifico

suponiendo que tienes el id de la consulta actual

Código HTML:
$idActual

Select * from tabla where id=($idACtual+1) o 
Select * from tabla where id=($idACtual-1) 
__________________
Hernando Saenz Sanchez