I have a dynamic array. For example like this.
$color = array('red','blue','green');
"SELECT * FROM mytable where colors=(red or blue or green)"
But my array is dynamic. So I don't know the values and how can I loop the array and select the rows.