Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/02/2005, 16:44
Avatar de lado2mx
lado2mx
Colaborador
 
Fecha de Ingreso: agosto-2001
Ubicación: Veracruz
Mensajes: 3.720
Antigüedad: 22 años, 8 meses
Puntos: 9
Tengo tu respuesta pero no se cual es noticia??, Pero creo que puede ser así:
Código PHP:

$consulta 
mysql_query("SELECT * FROM noticias ORDER BY id DESC LIMIT 1");
while(
$row mysql_fetch_array($consulta))
{  
echo 
"<tr>";
echo 
"<td width=\"306%\" class=\"textindexco_nbold\">";
echo 
$row["titulo"];
echo 
"</td><td width=\"10\" class=\"textindexco_n\" align=\"right\">";
echo 
$row["fecha"];
echo 
"</td></tr>";
echo 
"<tr><td colspan=\"2\"><img src=\"img/ai_all.gif\" width=\"1\" height=\"5\"></td></tr>";
echo 
"<tr><td colspan=\"2\" class=\"textindexco_n\" align=\"justify\">";
$limite 300// caracteres a mostrar
$noticia $row["argumento"];
$noticia_recortada substr($noticia0$limite); 
echo 
$noticia_recortada;
echo 
"</td></tr>";
}
mysql_free_result($consulta);