Ver Mensaje Individual
  #8 (permalink)  
Antiguo 01/12/2011, 16:10
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Array ( current, next, prev)

Pues tienes que recorrer tu array, suponiendo:
Código PHP:
Ver original
  1. $id = $_GET['id'];
  2. $pos = 0;
  3. foreach ($array as $index => $entries) {
  4.       if( $id == $entries['orden_seo'] ) {
  5.              $pos = $index;
  6.              break;
  7.       }
  8. }
  9.  
  10. $current = $pos;
  11. $prev = $pos - 1;
  12. $next = $pos + 1;
  13.  
  14. var_dump($array[$prev]);
  15. var_dump($array[$current]);
  16. var_dump($array[$next]);