CI框架搜寻中文后分页出错

WBOY
Lepaskan: 2016-06-13 12:37:22
asal
784 orang telah melayarinya

CI框架搜索中文后分页出错


如图:搜索中文分页出现错误,PHP处理代码我贴下面 求版主帮忙:

 会员列表<br />
 */<br />
    public function member_list(){  //会员列表<br />
<br />
        $this->userdoaction_model->getPower(MBMBERPOWER,$this->userinfo,POWER1);<br />
<br />
        $this->load->language('admin/member');<br />
        $condition['display'] = 15;<br />
        $data['lang'] = $this->lang->line('HtmlLanguages');<br />
        $data['option']=$this->group_model->getgroupmemberNM();<br />
        $data['options']=array<br />
                        ( 'null'=>$data['lang']['space'],<br />
                          '1'=>$data['lang']['s'],<br />
                          '0'=>$data['lang']['e']<br />
                        );<br />
       // sort($data['option']);<br />
       // $this->load->library('pagination');<br />
        //$config=$this->config->item('page');<br />
        //$config['base_url'] = base_url().$data['lang']['memberlist'];urlencode($kw)<br />
        if($this->input->post('dospost'))<br />
        {<br />
<br />
                $condition=array<br />
                    (<br />
                       'group_id'=>$this->input->post('gid'),<br />
                       'username'=>$this->input->post('username'),<br />
                       'status'  =>$this->input->post('status')<br />
                     );<br />
                //print_r($Sel);<br />
                $gid = $this->input->post('gid');<br />
                $status = $this->input->post('status');<br />
                $username = urlencode($this->input->post('username'));<br />
                $condition['display']=15;<br />
            $num = $this->member_model->Selcount($condition);<br />
	        $url = base_url()."/index.php/admin/member_list/";<br />
			$this->page->select = $gid."_".$status."_".$username;<br />
	        $this->page_model->page($num,"15",1,$url);<br />
	        $data['gid'] = $this->input->post('gid');<br />
	        $data['username'] = $this->input->post('username');<br />
	        $data['status'] = $this->input->post('status');<br />
	        $data['page']=$this->page->pagenav;<br />
	        $data['user'] = $this->member_model->Selmember($condition);<br />
<br />
        }else{<br />
        	error_reporting(E_ALL);<br />
			$num = $this->member_model->countlist();;<br />
	        $url = base_url()."/index.php/admin/member_list/";<br />
			$this->page->select = '0_null_0';<br />
	        $this->page_model->page($num,"15",1,$url);<br />
	        $data['page']=$this->page->pagenav;<br />
	       // print_r($condition);<br />
	        $data['user'] = $this->member_model->member_list($condition);<br />
         }<br />
         $this->load->view('admin/member_list',$data);
Salin selepas log masuk

Label berkaitan:
sumber:php.cn
Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan
Tentang kita Penafian Sitemap
Laman web PHP Cina:Latihan PHP dalam talian kebajikan awam,Bantu pelajar PHP berkembang dengan cepat!