$sth_2 = $dbh->prepare("UPDATE options SET trend = ? WHERE ticker = ?"); $sth_2->execute( $trend, $ticker );