Ver Mensaje Individual
  #5 (permalink)  
Antiguo 23/10/2005, 13:19
hYuNkEl
 
Fecha de Ingreso: diciembre-2003
Mensajes: 65
Antigüedad: 20 años, 4 meses
Puntos: 1
Seria algo asi creo yo:
$noticias = mysql_quey("SELECT * FROM noticias");
$total_noticias = mysql_num_rows($noticias);
$id_azar = rand(1,$total_noticias);
$query = "SELECT id FROM noticias where id= '$id_azar' ";
$noticia_azar = mysql_query($query);
$datos_noticia = mysql_fetch_array($noticia_azar);