liamoco Posted October 27, 2010 Share Posted October 27, 2010 I have a field called 'ext_chats', an example of what will be in the field is... domain1-qwerty,domain2-abcdef,domain3-12345 I want to select all from the table if 'qwerty' is in this field. How can this be done? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/217005-query-problem/ Share on other sites More sharing options...
Pikachu2000 Posted October 27, 2010 Share Posted October 27, 2010 That looks like a poor database structure, but notwithstanding that, SELECT `whatever` FROM `table` WHERE `some_field` LIKE '%qwerty%' [code] Quote Link to comment https://forums.phpfreaks.com/topic/217005-query-problem/#findComment-1127115 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.