Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/09/2007, 04:07
Avatar de Mahalo
Mahalo
 
Fecha de Ingreso: julio-2004
Ubicación: Mallorca (Illes Balears)
Mensajes: 1.121
Antigüedad: 19 años, 8 meses
Puntos: 12
Re: como hago que esto funcione?

El empleo de mysql_fetch_array es así:
Código PHP:
<?php
       
include ("connect.php");
       
$text mysql_query("SELECT title,intro,datumet FROM noticias" )
    or die(
mysql_error());
while (
$row mysql_fetch_array($text)) {

      echo 
'<p class="title2" style="font-weight: bold;">'.$row[title].'<br /><span class="brod" style="padding-left: 0px; font-weight: 100;">'.$row[intro].'</span></p>';
       echo 
'<p class="brod" style="font-weight: bold;">'.$row[datumet].'</p>';
}
?>
Y fíjate que en la consulta debes solicitar los campos que necesitas. Tú pedías news y necesitas intro, title y daumet.

Saludos!

PD:igual se me escapa algo más.