$serach=array('abc','def','ghi');
$num=count($search);
for($n=0, $n<$num, $n++){
$sql .= LIKE % $search[$n] % OR ;
}
$sql=substr_replace($sql,"",-3);//REMOVE LAST OR
SELECT * FROM store_main WHERE name :sql...
i need pass an array into query LIKE, i have use loop to create the statement and put into the query, my question is, is any way do it without loop, so i can make my query more simple.
INclause.