Ver Mensaje Individual
  #8 (permalink)  
Antiguo 26/06/2008, 17:03
Avatar de jaronu
jaronu
 
Fecha de Ingreso: febrero-2008
Mensajes: 2.183
Antigüedad: 16 años, 2 meses
Puntos: 52
Respuesta: Presentar Fecha, ayuda!!!

prueba asi:

Código PHP:
$connect=mysql_connect("localhost","root",""); 
                   
$db=mysql_select_db("sistemanoticia2",$connect); 
                   
$result mysql_query("SELECT id, titulo, fecha, headlight FROM noticias Order By id Desc Limit 2 ") or                         die(mysql_error()); 

        while (
$row=mysql_fetch_array($result)) 
                    {    
                       echo 
"<p></p><span class='news'><a href=\"newsroom.php?id=".$row['id']."\"> $row[headlight] </a> ";
echo
"...";
echo 
$row[fecha];