SELECT * from TableName Where ColumnName LIKE 'o hai%'
select * from travis where citi='fixed_prefix%'
select * from travis where citi='new%'
select * from travis where citi='%fixed_subfix'
select * from travis where citi='%york'
select * from travis where citi='%fixed_middle_string%'
select * from travis where citi='%gor%'
Ahh, I thought you meant array data... my bad. Not had my Red Bull yet...
You can do it in two steps, first get the data with a query like this:
Code:SELECT * from TableName Where ColumnName LIKE 'o hai%'
o hai = the prefix.
From this data then create a function with a for each loop and a preg_match to go through the returned results and find what you're looking for.
SELECT * from TableName Where ColumnName1='$user' AND ColumnName2 LIKE 'o hai%'
Thanks manYes, that will work fine.