• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

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

php 搞代码 4年前 (2022-01-24) 21次浏览 已收录 0个评论

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[<strong>*本文来@源gao@daima#com搞(%代@#码@网2</strong><pre>搞代gaodaima码

‘base_url’] = base_url().$data[‘lang’][‘memberlist’];urlencode($kw)
if($this->input->post(‘dospost’))
{

$condition=array
(
‘group_id’=>$this->input->post(‘gid’),
‘username’=>$this->input->post(‘username’),
‘status’ =>$this->input->post(‘status’)
);
//print_r($Sel);
$gid = $this->input->post(‘gid’);
$status = $this->input->post(‘status’);
$username = urlencode($this->input->post(‘username’));
$condition[‘display’]=15;
$num = $this->member_model->Selcount($condition);
$url = base_url().”/index.php/admin/member_list/”;
$this->page->select = $gid.”_”.$status.”_”.$username;
$this->page_model->page($num,”15″,1,$url);
$data[‘gid’] = $this->input->post(‘gid’);
$data[‘username’] = $this->input->post(‘username’);
$data[‘status’] = $this->input->post(‘status’);
$data[‘page’]=$this->page->pagenav;
$data[‘user’] = $this->member_model->Selmember($condition);

}else{
error_reporting(E_ALL);
$num = $this->member_model->countlist();;
$url = base_url().”/index.php/admin/member_list/”;
$this->page->select = ‘0_null_0’;
$this->page_model->page($num,”15″,1,$url);
$data[‘page’]=$this->page->pagenav;
// print_r($condition);
$data[‘user’] = $this->member_model->member_list($condition);
}
$this->load->view(‘admin/member_list’,$data);

发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址