when building the query in mySQL, How do I fetch the result with multiple values
Example code:
if (strtolower($_REQUEST['shirt_color']) == 'showall' && (isset($_REQUEST['shirt_type']))
{
$params[] = array('field' => 'color_type',
'operator' => '=',
'value' => 'black'
);
}
The above pice of code works fine and gets the correct results, However I want to search for two different colors:
I tried putting --- 'value' => "'black' OR 'white'"
but it doesnt work.
INand value to('black', 'white')