![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
28/01/2009, 06:59
|
| | Fecha de Ingreso: octubre-2007
Mensajes: 47
Antigüedad: 17 años, 3 meses Puntos: 2 | |
Respuesta: Preguntas aleatorias hola,
pues la consulta que deberías hacer, sería algo así:
SELECT * FROM tabla_preguntas ORDER BY RAND() LIMIT 10;
con el 'order by rand()' hacemos que haga el select ordenandolos de forma aleatoria, y con el 'limit 10' que coja solo 10 registros.
comenta si te ha servido y te funciona bien. saludos!! |