‘$name’ is coming from a search form and is working in this example - so if I seach for John, it pulls in all the entries with the first_name John.
How could I expand it to do following:
Ignore the case?
Find partial matches. For example, if I search for John it would also find Johnathon
Search multiple fields - for example first_name and last_name and find matches in either? So, searching for John would return ‘John Smith’, ‘Johnathon Jones’ and ‘Sally Johnson’