There are three, possible four columns in the table that I will need to use.
- year
- playerName
- variation
Lets say a user type in 2000 Matt Base. 2000 is the year, Matt is the player name, and base would be variation. However, what if another use types in Matt Base. And another 2000 Matt, or 2000 Base.
I know I can do something like select * from TBL where name LIKE '%$input%'
How can I search three columns based on a single user input? maybe explode it at the space and search each section? Is there a better way?