I have a search built that works ok.
the only problem i have now, is when i try to search more than one thing you have to use "'s in order for words to be searched for on the whole page. But when i use "echo" i prints out \"some words\"
I want it to print it out w/o the backslashes
the first one i can strip out pretty easy, but how to get the trainling one out? the query is always going to be a different length...i know the below code is sloppy so any help would be appreciated.
if ($query[0] == "\") {
echo "searched for news on $query[1]$query[2]$query[3]$query[4]$query[5]$query[6]$query[7]$query[8]$query[9]$query[10]$query[11]$query[12]$query[13]$query[14]$query[15]$query[16]$query[17]$query[18]";
}else{
echo "searched for news on $query";
}