package C4::Search;
+#require '/u/acli/lib/cvs.pl'; # XXX
# Copyright 2000-2002 Katipo Communications
#
my @acctlines;
my $numlines=0;
my $query= "Select * from accountlines where
-borrowernumber=$params->{'borrowernumber'} order by date desc,timestamp desc";
+borrowernumber=? order by date desc,timestamp desc";
my $sth=$dbh->prepare($query);
# print $query;
- $sth->execute;
+ $sth->execute($params->{'borrowernumber'});
my $total=0;
while (my $data=$sth->fetchrow_hashref){
# if ($data->{'itemnumber'} ne ''){
# sort for this?
if (my $data2=$sth2->fetchrow_hashref){
$counts{'not available'}++;
+ #my $x = "Not available, data2=" . (defined $data2? CGI::escapeHTML(cvs($data2)): "undef");
+ #$counts{$x}++; #XXX
} else {
$counts{$data->{'branchname'}}++;
}