ti ho risposto prima. Vediamo pero' quello che fai ora.

codice:
$query_preventivo = "SELECT *  FROM preventivi WHERE utente = '$utente'"; 
        $result = mysql_query($query_preventivo, $connessione) or die(mysql_error()); 

// $result E' sempre vero. Se il risultato fosse stato FALSE lo avrebbe stoppato il DIE
// quindi if inutile.

               if($result) {

// Se le righe estratte fossero ZERO questa operazione sarebbe inutile
                $row_query_preventivo = mysql_fetch_assoc($result); 

                $totalRows_query_preventivo = mysql_num_rows($result); 

// se ti aspetti un valore > 0 non devi mettere "diverso da empty" ma > 0
// se il risultato atteso fosse UNO, devi mettere == 1

                    if($totalRows_query_preventivo != ''){
 
                        $id_preventivo = $row_query_preventivo['id'];