I am making a search that searches a SQL table by multiple rows. For example:
| FirstName | LastName |
|----------------------|
| John | Doe |
|----------------------|
SELECT FirstName,LastName FROM Users WHERE FirstName LIKE '%inputhere%' OR LastName LIKE '%inputhere%' LIMIT 10
When I search a full name (e.g. John Doe
) no results appear because no one row has that value.
I there a way to separate the search query by spaces in order to avoid this?