How do I reverse this DBManSQL 1.02 code:
# Bold the results
if ($db_bold and $in{'view_records'}) {
for $i (0 .. (($#hits+1) / ($#db_cols+1)) - 1) {
$offset = $i * ($#db_cols+1);
foreach $field (@search_fields) {
$hits[$db_def{$field}[0] + $offset] =~ s,(<[^>]+>)|(\Q$in{$field}\E),defined($1) ? $1 : "<B>$2</B>",ge;
}
}
}
I need it to NOT add the <b> </B> if the selected field is a keyfield -- I'd like to set up a new variable $bcid that leaves the bold tags out.
Thanks!
Lynette
Hollister, Ca
# Bold the results
if ($db_bold and $in{'view_records'}) {
for $i (0 .. (($#hits+1) / ($#db_cols+1)) - 1) {
$offset = $i * ($#db_cols+1);
foreach $field (@search_fields) {
$hits[$db_def{$field}[0] + $offset] =~ s,(<[^>]+>)|(\Q$in{$field}\E),defined($1) ? $1 : "<B>$2</B>",ge;
}
}
}
I need it to NOT add the <b> </B> if the selected field is a keyfield -- I'd like to set up a new variable $bcid that leaves the bold tags out.
Thanks!
Lynette
Hollister, Ca