Ver Mensaje Individual
  #3 (permalink)  
Antiguo 15/10/2008, 11:20
Avatar de pato12
pato12
 
Fecha de Ingreso: septiembre-2007
Ubicación: Salta
Mensajes: 1.620
Antigüedad: 16 años, 8 meses
Puntos: 101
Respuesta: problema paginacion mysql...(novato)

Hola,
Prueba cambiando:
Código PHP:
    $sql 'SELECT p.testdim,p.testdate, p.milk, p.fat,p.scc,p.prot,p.herd_id, h.herd_id, h.codi, a.parity,a.endparitydate 
                   FROM production p , herd h, ag_parity a 
                  WHERE p.TESTDATE  > \'2008-05-01\'  
                 and a.endparitydate > \'2007-05-01\' 
                 and p.herd_id= a.herd_id  
                 and a.herd_id= h.herd_id 
                 order by h.codi 
                 LIMIT $a,$b'

Por:
Código PHP:
    $sql 'SELECT p.testdim,p.testdate, p.milk, p.fat,p.scc,p.prot,p.herd_id, h.herd_id, h.codi, a.parity,a.endparitydate 
                   FROM production p , herd h, ag_parity a 
                  WHERE p.TESTDATE  > \'2008-05-01\'  
                 and a.endparitydate > \'2007-05-01\' 
                 and p.herd_id= a.herd_id  
                 and a.herd_id= h.herd_id 
                 order by h.codi 
                 LIMIT '
.$a.','.$b
Suerte
Salu2
__________________
Half Music - www.halfmusic.com