andrew has asked for the wisdom of the Perl Monks concerning the following question:
Gettting this error, dont understand why, cause the each have 20.$ins = "INSERT INTO `items` (`category`, `itemid`, `price`, `descripti +on`, `longdescription`, `size`, `o1n`, `o1o`, `o2n`, `o2o`, `o3n`, `o +3o`, `c1n`, `c1v`, `c2n`, `c2v`, `c3n`, `c3v`, `small`, `large`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, +?, ?)"; $sth = $dbh->prepare("$ins") or die $dbh->errstr; $sth->execute(param('cat'),param('itemid'),param('price'),param('des') +,param('longdes'),param('size'),param('o1n'),param('o1o'),param('o2n' +),param('o2o'),param('o3n'),param('o3o'),param('c1n'),param('c1v'),pa +ram('c2n'),param('c2v'),param('c3n'),param('c3v'),param('small'),para +m('large')) or die $dbh->errstr;
called with 19 bind variables when 20 are needed at /home/dtdynoco/pub +lic_html/admin1130/admin.cgi line 1023.
|
---|
Replies are listed 'Best First'. | |
---|---|
•Re: called with 19 bind variables when 20 are needed, error
by merlyn (Sage) on Jul 20, 2002 at 21:41 UTC | |
by andrew (Acolyte) on Jul 20, 2002 at 22:08 UTC | |
by merlyn (Sage) on Jul 20, 2002 at 22:14 UTC | |
Re: called with 19 bind variables when 20 are needed
by gav^ (Curate) on Jul 20, 2002 at 22:42 UTC |