Hi PHP Peeps,
I have a db field called features this field contains a string like this 'abxgh1'
My question is how can I use Locate (Or alike) to match results that contain part or all of that string in any order E.G:
// features = 'abxgh1'
// I WANT this to return a match (not 0)
select * from table where locate('ax1',features) <> 0
//I want this to return a match (Not 0) too
select * from table where locate('xa1b',features) <> 0
Thanks in advance