Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/05/2008, 10:37
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: Seleccionar 5 registros aleatorios

Hola Potro,

Puedes hacer algo así:
Código:
SELECT campos FROM tabla ORDER BY RAND() LIMIT 5
Saludos.