It looks to me that you cut & pasted a bit to place the code in this node, but just to double check... You should only call ->disconnect() once. In DBI, you do...
$dbh = DBI->connect(); $dbh->do(); $sth = $dbh->prepare(); $sth->execute(); # And other methods for dealing with your data $dbh->commit() or $dbh->rollback(); $dbh->disconnect();
In the code snippets you provided, you have a ->disconnect() after every ->do(). The other thing is that you seem to be using undef to mean a NULL. I am not sure if you can do that with placeholders. Just for kicks, try using '' (empty string) instead of undef and let us know.
Update: I just noticed that I gave out bad advice. The undef does not stand for a NULL but for an empty \%attr. Sorry for that.
Best regards
-lem, but some call me fokat
In reply to Re: MySQL and Perl... Update record Prob
by fokat
in thread MySQL and Perl... Update record Prob
by powerhouse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |