I asked this question about a year ago on another site but never got the answers I was looking for. And I've been wondering about it ever since.
I'd like to impliment some search functions similar to Google's (inurl:foo, site:bar.com)
So if you entered a normal query, with none of these functions included, it would search one column.
However if you included a function (func:foo bar
) it would search column 1 for foo and column 2 for bar.
What's a good solution for this in PHP and MySQL. Also, multiple functions (func1:foo func2:bar query
) would be good too.