while($temporanea=mysql_fetch_array($query)){
$nome=$temporanea['nome'];
if(!empty($temporanea['titolo'])) { $titolo="- ".$temporanea['titolo']; }

echo"$nome $titolo";

}