$keywords=array("test","tset");
$matches = implode(',', $keywords);
$sql = "SELECT * FROM `reg` WHERE title like in '%$matches%' group by p_title";
$data = mysql_query($sql);
while($info=mysql_fetch_array($data))
{
Print " {$info['title']}<br /> ";
}
我想写一个查询
$sql = "SELECT * FROM `reg` WHERE title like in '%test%' group by p_title";
$sql = "SELECT * FROM `reg` WHERE title like in '%tset%' group by p_title";
...........
如何在一个查询中搜索每个关键字?