Selecting one word out of a phrase
Posted: Wed Aug 15, 2007 1:19 am
In mysql, you can do something like this:
That will select from any field that has test in it.
How do you do that in PHP. For example:
Is that possible?
Code: Select all
select row from table where field like '%test%'How do you do that in PHP. For example:
Code: Select all
if ($variable == "%test%") {