Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/09/2009, 08:10
Labelin
 
Fecha de Ingreso: marzo-2009
Mensajes: 164
Antigüedad: 15 años, 2 meses
Puntos: 1
Error en paginación

Tengo este código
Código PHP:
$rs mysql_query("select * from ventas limit " $inicio "," $TAMANO_PAGINA);   $lodo=mysql_fetch_array($rs) or die(mysql_error()); 
Todas las variables como $inicio y $TAMANO_PAGINA están definidas. Cuando lo abro me tira el error:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
¿Como se soluciona? Gracias