small bugfix (execute with ?)

This commit is contained in:
tipaul 2003-02-05 15:52:24 +00:00
parent dcfbab52cb
commit 98d746e42e
1 changed files with 2 additions and 2 deletions

View File

@ -190,10 +190,10 @@ if ($op eq 'add_form') {
# $fines=$fines+0;
my $dataaqbookfund;
my $dbh = C4::Context->dbh;
my $query="select bookfundid,bookfundname from aqbookfund where bookfundid=$results->[$i]{'bookfundid'}";
my $query="select bookfundid,bookfundname from aqbookfund where bookfundid=?";
# print $query;
my $sth=$dbh->prepare($query);
$sth->execute;
$sth->execute($results->[$i]{'bookfundid'});
$dataaqbookfund=$sth->fetchrow_hashref;
$sth->finish;
my @toggle = ();