|
发表于 2010-8-16 21:04:38
|
显示全部楼层
我也折磨了很久,用's_name' => $this->input->xss_clean($this->input->post('s_name'))或者$config['total_rows'] = $this->MStudent->serchStudents($_POST)->num_rows();]
function serchStudents($data)
{ //$data传递数据用变量名做下标取数据
return $this->db->get_where('ip', array('p_name'=> $data['p_name'])); //ok
} |
|