Così?
Codice PHP:
while($row mysql_fetch_array($sql)){
      
$tot $row['ore'];
      
$totale .= $tot;
}
echo 
$totale
Scusami ma sono un pò confuso