Nico,
This is how I would do it:
$query = mysql_query("SELECT * FROM db_leggi WHERE gruppo_l = '$gruppo_l' ORDER BY numero_l DESC");
$result = mysql_fetch_array($query);
$short = substr($result["gruppo_1"],0,100);
// Replace gruppo_1 with the field you want to trim
So you are trimming the result and not the query as Kirk says.
HTH
Mike