我已经创建了这个代码
$cities = arrary('city1','city2','city3','city4','city5');
$query = "SELECT * FROM data_entry WHERE ";
foreach($cities as $city){
$query += " AND city = '$city' ";
}
echo $query;
此代码打印零
我想像这样制作 $query 输出
SELECT * FROM data_entry WHERE city = 'city1' AND city = 'city2' .... etc.