Right now I’m just using a simple
WHERE name LIKE '%$ser%'
But I’m running into an issue – say the search is Testing 123 and the “name” is Testing, it’s not coming back with any results. Know any way to fix it? Am I doing something wrong?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to search for ‘Testing’ or ‘123’ use
OR:Note however that this will be very slow as no index can be used and it may return some results you didn’t want (like “4123”). Depending on your needs, using a full text search or an external database indexing product like Lucene might be a better option.