FIX: Incorrect values inserted in database. used '$a' instead of $a

This commit is contained in:
plugz 2003-06-20 12:34:48 +00:00
parent 47d135f123
commit e1e291d69b
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ sub UpdateStats {
# FIXME - Use $dbh->do() instead
my $sth=$dbh->prepare("Insert into statistics (datetime,branch,type,usercode,value,
other,itemnumber,itemtype,borrowernumber) values (now(),?,?,?,?,?,?,?,?)");
$sth->execute('$branch','$type','$user','$amount','$other','$itemnum','$itemtype','$borrowernumber');
$sth->execute($branch,$type,$user,$amount,$other,$itemnum,$itemtype,$borrowernumber);
$sth->finish;
}