fix for #222
authortipaul <tipaul>
Tue, 8 Apr 2003 12:01:24 +0000 (12:01 +0000)
committertipaul <tipaul>
Tue, 8 Apr 2003 12:01:24 +0000 (12:01 +0000)
admin/aqbookfund.pl

index 63335ab..955c201 100755 (executable)
@@ -52,7 +52,7 @@ sub StringSearch  {
        $searchstring=~ s/\'/\\\'/g;
        my @data=split(' ',$searchstring);
        my $count=@data;
-       my $query="select bookfundid,bookfundname,bookfundgroup from aqbookfund where (bookfundid like \"$data[0]%\") order by bookfundid";
+       my $query="select bookfundid,bookfundname,bookfundgroup from aqbookfund where (bookfundname like \"%$data[0]%\") order by bookfundid";
        my $sth=$dbh->prepare($query);
        $sth->execute;
        my @results;