in reply to Trying to Debug DB Search
Any time you have a syntax error that you can't figure out, check the previous line for a missing semicolon. In your case, that's what it is: "$match = $val[0];".