Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/02/2005, 16:38
diabliyomalo
 
Fecha de Ingreso: enero-2005
Mensajes: 90
Antigüedad: 19 años, 3 meses
Puntos: 0
alguien sabe ordenarlo??

Hola.
tengo este codigo en mi web.. y kiero añadirle unas cosas pero nose como.
Alguna idea??

Código PHP:
<?
include("conexion.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\">";
echo 
$row["argumento"];
echo 
"</td></tr>";

mysql_free_result($consulta);
?>
Y luego quiero añadirle esto para que la noticia solo se muestre esos 300caracteres.

Código PHP:
$limite 300// caracteres a mostrar
$noticia_recortada substr($noticia0$limite); 
Como se tendria que ordenar esto?

Gracias.
__________________
Usuario Novato, xD :pensando: