Lines 76-81
sub search {
Link Here
|
76 |
$searchmember =~ s/\*/%/g; # * is replaced with % for sql |
76 |
$searchmember =~ s/\*/%/g; # * is replaced with % for sql |
77 |
$term .= '%' # end with anything |
77 |
$term .= '%' # end with anything |
78 |
if $term !~ /%$/; |
78 |
if $term !~ /%$/; |
|
|
79 |
$searchtype //= ''; |
79 |
$term = "%$term" # begin with anythin unless start_with |
80 |
$term = "%$term" # begin with anythin unless start_with |
80 |
if $term !~ /^%/ |
81 |
if $term !~ /^%/ |
81 |
and $searchtype eq "contain"; |
82 |
and $searchtype eq "contain"; |
82 |
- |
|
|