Codice PHP:
$testo strlen($row['testo']) > 100 ?substr($row['testo'], 097).'...' $row['testo'];

echo 
$testo
da mettere nel tuo ciclo