ajax编码有关问题,大侠帮忙!
程序员文章站
2024-02-10 21:53:40
...
ajax编码问题,在线等大侠帮忙!!!
public function ajax_page(){
//header('Content-Type:text/html;charset=gbk');
error_reporting(E_ALL);
$page = $this->input->post('pg');
$where = $this->input->post('action');
$array = explode('_',$where);
$condition['group_id'] = $array[0];
$condition['status'] = $array[1];
$condition['username'] = @iconv( "UTF-8","GBK", $array[2]);
echo $condition['username'];
$condition['display'] = 15;
$condition['page'] = ($page-1) * 15;
$num = $this->member_model->Selcount($condition);
$url = base_url()."/index.php/admin/member_list/";
$this->page->select = $where;
$this->page_model->page($num,"15",$page,$url);
$data['page'] = $this->page->pagenav;
$data['user'] = $this->member_model->Selmember($condition);
$this->load->language('admin/member');
$data['lang'] = $this->lang->line('HtmlLanguages');
//print_r($data['user']);//exit;
$this->load->view('admin/member_list_ajax', $data);
}
专题推荐
-
独孤九贱-php全栈开发教程
全栈 170W+
主讲:Peter-Zhu 轻松幽默、简短易学,非常适合PHP学习入门
-
玉女心经-web前端开发教程
入门 80W+
主讲:灭绝师太 由浅入深、明快简洁,非常适合前端学习入门
-
天龙八部-实战开发教程
实战 120W+
主讲:西门大官人 思路清晰、严谨规范,适合有一定web编程基础学习
- 最新文章
- 热门排行
网友评论
文明上网理性发言,请遵守 新闻评论服务协议
我要评论