[RESOLVED] Complex WHERE conditions...
Posted: Sun Oct 05, 2008 12:38 pm
I want to make a query like this:
On other words, where cond1 is equal to something and either cond2 or cond3 is equal to something else.
What I tried above throws off a MySQL syntax error. Help?
Code: Select all
SELECT * FROM blah WHERE cond1 = 'yeah' AND (cond2 LIKE '%search%' OR cond3 LIKE '%search%')
What I tried above throws off a MySQL syntax error. Help?