Ver Mensaje Individual
  #10 (permalink)  
Antiguo 16/02/2016, 14:42
snakepit
 
Fecha de Ingreso: diciembre-2001
Ubicación: Argentina
Mensajes: 693
Antigüedad: 22 años, 4 meses
Puntos: 1
Respuesta: Link hacia el siguiente ID atras y adelante php

Encontre la solución lo posteo por si otro lo necesita,

Código PHP:
Ver original
  1. foreach($connection->query('SELECT * FROM grafica WHERE id = (select min(id) from grafica where id > '.$valorid.')') as $row) {
  2.  
  3.                 }
  4.  
  5.  
  6. <?php echo $row['id']; ?>