Thiele
05-21-2009, 04:58 AM
Hi there
Can anybody tell me how to make a query in MySQL using two search-terms?
What I want to do is:
I have a field in my table, containing keywords seperated by a comma.
In my php search field I want to be able to search by two or more criteria ex. CALLAWAY and FTIQ (from the same field in the table).
I can do a search for callaway and I can do a search for ftiq which both return a result, but I don't know how to combine the two in one search. What would be the correct syntax? is it 'and' or '%' or what the he.. is it.
Best regards
Anders Thiele
Can anybody tell me how to make a query in MySQL using two search-terms?
What I want to do is:
I have a field in my table, containing keywords seperated by a comma.
In my php search field I want to be able to search by two or more criteria ex. CALLAWAY and FTIQ (from the same field in the table).
I can do a search for callaway and I can do a search for ftiq which both return a result, but I don't know how to combine the two in one search. What would be the correct syntax? is it 'and' or '%' or what the he.. is it.
Best regards
Anders Thiele