
11/12/2007, 05:39
|
 | | | Fecha de Ingreso: julio-2002 Ubicación: Barakaldo
Mensajes: 104
Antigüedad: 22 años, 6 meses Puntos: 0 | |
mostrar entrada anterior y posterior Para los post de mi blog he creado que me saque la entrada anterior y posterior de ese post, pero tengo un error
ejem
$p-> 453 $catt -> 4
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)
Post ANTERIOR
------------------- SELECT * FROM myway_posts where post_category LIKE '$catt' and ID <'$p' order by ID desc LIMIT 0,1
Muestra
post id -> 452 CORRECTO
ALGUNA SOLUCION
Última edición por jonk; 11/12/2007 a las 05:46 |