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