When I do, let's say for example, a search of 'hello' I get all instances where 'hello' is used. But if I search 'hello my' I only get instances where those two words follow each other.
$search = 'hello my';
$search = explode(' ', $search);
Once I've exploded it I'm not sure what to do, I've tried using a for loop like so:
for($i = 0; $i < count($search); $i++) {
$search = $search[$i];
}
And I've also tried putting my SQL SELECT inside the for loop so it does multiple searches but that hasn't worked. My SQL syntax looks like this:
SELECT * FROM table WHERE string LIKE '%$search%';