Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Reverse adding bold tags?

Quote Reply
Reverse adding bold tags?
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
Subject Author Views Date
Post Reverse adding bold tags? ltillner 1671 Feb 23, 2004, 1:22 PM