Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/02/2009, 01:57
Avatar de Triby
Triby
Mod on free time
 
Fecha de Ingreso: agosto-2008
Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 15 años, 8 meses
Puntos: 2237
Respuesta: Xajax con order by y limit

Código php:
Ver original
  1. $sqlSelect="select * from comentarios where activo=1 order by 1 limit $inicio,$cantidad";
  2.  
  3. // Devuelve algun error?
  4. $result = mysql_query($sqlSelect) or die(mysql_error());
  5.  
  6. // Intenta imprimir lo siguiente:
  7. die("Inicio: $inicio - cantidad: $cantidad - Registros leidos: " . mysql_num_rows($result));

Cuentanos lo que obtienes y tal vez sea mas facil encontrar el error.
__________________
- León, Guanajuato
- GV-Foto