Ciao a tutti..


Codice PHP:
<?php
$result 
mysql_query("SELECT *, date_format(data, '%d/%m') as data_format FROM news ORDER BY id DESC LIMIT 0,20")
or die(
"Query non valida: " mysql_error());
while (
$row mysql_fetch_array($result))
{ echo 
"&raquo;$row[data_format][b]<a href=\"news/news.php?id=$row[id]\"title=\"$row[titolo]\"> $row[titolo]</a>[/b]
$row[testo]<hr>";}
?>
Questo script mi visualizza le news nella home. L'inconveniente è che spesso [testo] è molto lungo e vorrei limitarlo a tot caratteri o parole..

come posso fare?

Grazie