miller has asked for the wisdom of the Perl Monks concerning the following question:
and here is my error:my ($grp_name, $grp_description) = @_; my %form_values=""; my $sqlcount = "SELECT COUNT(*) FROM grp_def WHERE grp_name='$grp_n +ame' "; my $sth = $dbh->prepare($sqlcount) || die "Cannot prepare: " . $dbh +->errstr(); $sth->execute($form_values{'grp_name'}) or die "Cannot execute: " . + $sth->errstr(); my $occurences = $sth->fetchrow_arrayref->[0]; print "result: $occurences\n";
I dont know where to start to look for the solution, if its DBI or somthing else i HOPE you can help me ,MillerDBD::DB2::st execute failed: execute called with 1 bind variables when + 0 are needed at miller.pl line 71. Cannot execute: execute called with 1 bind variables when 0 are needed + at miller.pl line 71.
edited: Thu Jun 12 14:39:08 2003 by jeffa - title change (was: strict and DBI)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need help with DBI bind value error
by broquaint (Abbot) on Jun 12, 2003 at 10:13 UTC | |
|
Re: Need help with DBI bind value error
by davorg (Chancellor) on Jun 12, 2003 at 10:08 UTC | |
|
Re: Need help with DBI bind value error
by bigj (Monk) on Jun 12, 2003 at 11:32 UTC | |
|
Re: Need help with DBI bind value error
by Itatsumaki (Friar) on Jun 12, 2003 at 16:52 UTC | |
|
Re: Need help with DBI bind value error
by miller (Acolyte) on Jun 13, 2003 at 08:53 UTC |