Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/11/2011, 13:31
Avatar de tomark4
tomark4
 
Fecha de Ingreso: septiembre-2007
Mensajes: 154
Antigüedad: 16 años, 7 meses
Puntos: 29
Respuesta: usar variable en consulta

algo asi:

Código PHP:
Ver original
  1. $num = 0;
  2. $sql = "select * from mitabla where misparametros order by 1 asc
  3. limit ".$num.",4";
__________________
"Todos somos ignorantes, pero no todos ignoramos las mismas cosas"

http://www.pctec21.blogspot.com
http://www.pctec21.com