version 1.85, 2007/08/25 13:45:56
|
version 1.86, 2007/08/25 19:52:11
|
Line 462 sub make_new_child {
|
Line 462 sub make_new_child {
|
if ($srchtype eq 'exact') { |
if ($srchtype eq 'exact') { |
$query .= 'lastname = '.$dbh->quote($fraglast). |
$query .= 'lastname = '.$dbh->quote($fraglast). |
' AND firstname = '.$dbh->quote($fragfirst); |
' AND firstname = '.$dbh->quote($fragfirst); |
|
} elsif ($srchtype eq 'begins') { |
|
$query .= 'lastname LIKE '.$dbh->quote($fraglast.'%').' AND firstname LIKE '.$dbh->quote($fragfirst.'%'); |
} else { |
} else { |
$query .= 'lastname LIKE '.$dbh->quote('%'.$fraglast.'%').' AND firstname LIKE '.$dbh->quote('%'.$fragfirst.'%'); |
$query .= 'lastname LIKE '.$dbh->quote('%'.$fraglast.'%').' AND firstname LIKE '.$dbh->quote('%'.$fragfirst.'%'); |
} |
} |
Line 472 sub make_new_child {
|
Line 474 sub make_new_child {
|
); |
); |
if ($srchtype eq 'exact') { |
if ($srchtype eq 'exact') { |
$query .= $srchfield{$srchby}.' = '.$dbh->quote($srchterm); |
$query .= $srchfield{$srchby}.' = '.$dbh->quote($srchterm); |
|
} elsif ($srchtype eq 'begins') { |
|
$query .= $srchfield{$srchby}.' LIKE '.$dbh->quote($srchterm.'%'); |
} else { |
} else { |
$query .= $srchfield{$srchby}.' LIKE '.$dbh->quote('%'.$srchterm.'%'); |
$query .= $srchfield{$srchby}.' LIKE '.$dbh->quote('%'.$srchterm.'%'); |
} |
} |