my $sth6 = $dbh->do("UPDATE table_name SET good_high = $threshold_good_high, critical_low = $threshold_critical_low, warning_low = $threshold_warning_low, warning_high = $threshold_warning_high WHERE user = ? AND name = '$threshold_name'"); print "\$sth6: $sth6\n";