in reply to Re^3: Trying to Debug DB Search
in thread Trying to Debug DB Search

You've got
if ($type = "email") { ... } if ($type = "article") { ... }
Those = signs are ASSIGNING to $type, not comparing. You want the 'eq' operator to compare strings for equality.

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart