In MY TABLE if I type
floor fly
table returns No matching records
because Global Search php function search records insid
This is a bit long for a comment.
For this type of search, you might consider a full text index. The documentation is here. These implement the MATCH . . . AGAINST
functionality.
With such functionality, you can order the results by relevance. This means that you do not have to decide in advance whether the connector is "and" or "or" between multiple words. You can also implement a boolean search, which would allow for more complex complex logic, if you so desire.