wil has asked for the wisdom of the Perl Monks concerning the following question:
if ($subscribe) { my $dbh = $mysql->connect; my $sth = $dbh->prepare("INSERT INTO wyb_news VALUES(?,?,?)") or die("Can't execute SQL query: [$DBI::err] $DBI::errstr"); $sth->execute ('',"$name","$email") or dir("Can't execute SQL query: [$DBI::err] $DBI::errstr"); $dbh->disconnect; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Invalid sub ignored on use strict;
by Dog and Pony (Priest) on Apr 30, 2002 at 13:59 UTC | |
by wil (Priest) on Apr 30, 2002 at 14:23 UTC | |
Re: Invalid sub ignored on use strict;
by Sifmole (Chaplain) on Apr 30, 2002 at 13:02 UTC | |
by wil (Priest) on Apr 30, 2002 at 14:28 UTC | |
Re: Invalid sub ignored on use strict;
by strat (Canon) on Apr 30, 2002 at 11:24 UTC | |
by derby (Abbot) on Apr 30, 2002 at 11:46 UTC | |
| |
Re: Invalid sub ignored on use strict;
by chromatic (Archbishop) on Apr 30, 2002 at 19:39 UTC |