codice:
$stringa = '';
.....
.....
while ($row = mysql_fetch_array($result)) {

$stringa .= "<u>" . $row["corso"] . "</u>
";

}
echo $stringa;