$this->input->post('city'); 如果未选, 仍有长度,只因为它没有去空格。
应用 $shi =trim($this->input->post('prv'));
$sheng =trim($this->input->post('city'));
这种写法,在数据库查找指定的字段值才不会找不到。
$this->input->post('city'); 如果未选, 仍有长度,只因为它没有去空格。
应用 $shi =trim($this->input->post('prv'));
$sheng =trim($this->input->post('city'));
这种写法,在数据库查找指定的字段值才不会找不到。