Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/12/2009, 18:36
kirst
 
Fecha de Ingreso: septiembre-2009
Mensajes: 230
Antigüedad: 14 años, 7 meses
Puntos: 2
[Ayuda] Listar consultas

Quisiera listar consultas aleatoriamente, que no tengan orden. Las listo así por defecto ahora mismo:

Código PHP:
$arrNoticias = array();
$query "SELECT * FROM `noticias` WHERE fPublicacion < '".date('Y-m-d H:i:s')."' ORDER BY fPublicacion DESC";
$resultado mysql_query ($query$dbConn);
while ( 
$row mysql_fetch_assoc ($resultado))
{
    
array_push$arrNoticias,$row );

Si fPublicacion es menor al tiempo del servidor, entonces procede a mostrar las publicaciones.. Si hay que sacarlo no hay probelma, solamente quiero que muestre aleatoriamente las consultas. Saludos.