Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/12/2007, 05:47
Avatar de jonk
jonk
 
Fecha de Ingreso: julio-2002
Ubicación: Barakaldo
Mensajes: 104
Antigüedad: 21 años, 9 meses
Puntos: 0
Re: mostrar entrada anterior y posterior

Post SIGUIENTE
-------------------
SELECT * FROM myway_posts where post_category LIKE '$catt' and ID >'$p' order by ID desc LIMIT 0,1

Muestra
post id -> 462 INCORRECTO (tendria que sacar 455)


LA SOLUCION

Post SIGUIENTE
-------------------
SELECT * FROM myway_posts where post_category LIKE '$catt' and ID >'$p' order by ID asc LIMIT 0,1

Muestra
post id -> 455
__________________

MyWay. A mi manera
http://myway.i-barakaldo.com