|

楼主 |
发表于 2009-12-29 15:52:22
|
显示全部楼层
where_in不支持的我后来我改了sql与句就好了
function deletecity($id)
{
if($id!=0)
{
$this->db->delete("city",array("id"=>$id));
return true;
}
else
{
$arr=$this->input->post('id');
$sql="delete from `city` where id in (".join(',',$arr).")";
$query=$this->db->query($sql);
return true;
}
} |
|