CI框架搜寻中文后分页出错
程序员文章站
2022-06-05 09:27:50
...
CI框架搜索中文后分页出错
如图:搜索中文分页出现错误,PHP处理代码我贴下面 求版主帮忙:
如图:搜索中文分页出现错误,PHP处理代码我贴下面 求版主帮忙:
会员列表
*/
public function member_list(){ //会员列表
$this->userdoaction_model->getPower(MBMBERPOWER,$this->userinfo,POWER1);
$this->load->language('admin/member');
$condition['display'] = 15;
$data['lang'] = $this->lang->line('HtmlLanguages');
$data['option']=$this->group_model->getgroupmemberNM();
$data['options']=array
( 'null'=>$data['lang']['space'],
'1'=>$data['lang']['s'],
'0'=>$data['lang']['e']
);
// sort($data['option']);
// $this->load->library('pagination');
//$config=$this->config->item('page');
//$config['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);
专题推荐
-
独孤九贱-php全栈开发教程
全栈 170W+
主讲:Peter-Zhu 轻松幽默、简短易学,非常适合PHP学习入门
-
玉女心经-web前端开发教程
入门 80W+
主讲:灭绝师太 由浅入深、明快简洁,非常适合前端学习入门
-
天龙八部-实战开发教程
实战 120W+
主讲:西门大官人 思路清晰、严谨规范,适合有一定web编程基础学习
- 最新文章
- 热门排行
网友评论
文明上网理性发言,请遵守 新闻评论服务协议
我要评论