Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/05/2006, 00:54
Avatar de faco84
faco84
 
Fecha de Ingreso: julio-2005
Mensajes: 61
Antigüedad: 18 años, 9 meses
Puntos: 0
Problema con "LIMIT"

Hola!
Al intentar usar como parametro un valor recibido por "$_REQUEST" en LIMIT, me da error de syntaxis.
El script es el siguiente:
...
Código PHP:
$offset $_REQUEST['offset'];
       
$query="SELECT movie_name, movie_year
       FROM movie
       ORDER BY movie_name
       LIMIT $offset,1"

...
*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 '1' ".

Espero que puedan ayudarme, gracias!.