Okay, I think this has potential, but I am getting a parsing error. I know where, but I am not sure what the solution is. Here is an excerpt from my code that includes a modified version of the the information you gave me, nemonoman.
If ($SearchString <> ""){
$SearchWords = explode (" ", $SearchString );
for each ($SearchWords as $value) {
$querystring.="concat(Question,Answer) LIKE '%$value%' And ";
}
$querystring.="1";
If ($Where <> "") {
$Where = "$Where And $querystring'";
} Else { $Where = "WHERE $querystring";
The problem occurs on the line:
$querystring.="concat(Question,Answer) LIKE '%$value%' And ";
I think it occurs because the last loop still includes an "And" at the end.
Any thoughts on how to get rid of it? Or is this not the problem?
Again, THANKS!
Timm