version 1.20, 2001/05/17 23:31:08
|
version 1.21, 2001/05/18 20:16:33
|
Line 160 sub Search {
|
Line 160 sub Search {
|
} else { |
} else { |
$sstr = join " OR $f LIKE ", @sar; |
$sstr = join " OR $f LIKE ", @sar; |
} |
} |
|
|
$sth = $dbh->prepare("SELECT QuestionId FROM Questions |
### Changed by R7 to prevent showing similar questions######### |
WHERE $f LIKE $sstr ORDER BY QuestionId"); |
|
|
if (param('showequal') eq 'yes') { |
|
$sth = $dbh->prepare("SELECT QuestionId FROM Questions |
|
WHERE $f LIKE $sstr ORDER BY QuestionId"); |
|
} else { |
|
$sth = $dbh->prepare("SELECT QuestionId FROM Questions LEFT JOIN equalto |
|
ON equalto.First=QuestionId WHERE (First IS NULL) AND |
|
($f LIKE $sstr) ORDER BY QuestionId"); |
|
} |
|
|
|
|
} #else -- processing old-style query (R7) |
} #else -- processing old-style query (R7) |
|
|