I am trying to do a like comparison based on an outside parameter (passed by a search form) that determines type of comparison (\"%string\" or \"string%\"
\"%string\"
\"string%\"
You will be better off using Regex to solve this problem.