hondaworkshop
01-20-2007, 05:26 PM
Here's my general query layout for helping users wheedle down database rows to what they are looking for:
SELECT from `mytable` WHERE `category`='wheels' AND `subcategory`='15 inch' AND(`title` LIKE '%konig%' OR `title` LIKE '%rota%' )
I want it to meet a few REQUIRED conditions, AND meet at least ONE of my multiple OR-separated conditions. What is the correct syntax for this query?
SELECT from `mytable` WHERE `category`='wheels' AND `subcategory`='15 inch' AND(`title` LIKE '%konig%' OR `title` LIKE '%rota%' )
I want it to meet a few REQUIRED conditions, AND meet at least ONE of my multiple OR-separated conditions. What is the correct syntax for this query?