Seems to be doning something, not exactly what I would like though. I placed your code in my script, and used the following lines to test it.
$keyphrase = ""I am cool""; // representing that the user put quotes around the string at the form.
echo "[0] = " . $keyword[0] . "<br>\n";
echo "[1] = " . $keyword[1] . "<br>\n";
echo "[2] = " . $keyword[2] . "<br>\n";
echo "[3] = " . $keyword[3] . "<br>\n";
echo "[4] = " . $keyword[4] . "<br>\n";
That outputted the following:
[0] = "i am cool"
[1] = "i
[2] = am
[3] = cool"
[4] = i am cool
I would like it to output this:
[0] = "i am cool"
thats because I dont want to search each word seperately if there are quotes around the string, I just want to search the string as a whole. Should the quotes get removed before comparing it at the database? Thanx!