public function insert() {
$shiqu = I('post.city_shi');
if ($this->DB->create()) {
dump($this->DB);
die();
if ($this->DB->addAll()) {
$this->success('提交成功!');
} else {
$this->error('提交失败!');
}
} else {
$this->error($this->DB->getError());
}
}不知道这样写可否
$shiqu = I('post.city_shi'); 这是多选表单