in reply to DB Not UPDATE-ing
I've gotta be missing something or smoking too much crack.Well, I don't really find that beaming up effects my coding adversely, so my guess is that you're missing something.
my $SQL = "UPDATE mytable SET subscribed = '0', unsubscribedby = 'SYSTEM' WHERE usercode = ? AND unsubscribedby = ''"; my $sth = $DBH->prepare( $SQL ); foreach my $md5 ( @usercodelist ) { chomp $md5; # I'm assuming a newlines is bungling your update $sth->execute( $md5 ) or die "Can't execute $SQL"; }
|
|---|