백엔드 개발 PHP 튜토리얼 CodeIgniter 搜索分页有点有关问题 帮忙看下

CodeIgniter 搜索分页有点有关问题 帮忙看下

Jun 13, 2016 am 09:59 AM
config gt nbsp post

CodeIgniter 搜索分页有点问题 帮忙看下
我的查询条件比较多,所以可能稍微显得长了点,分页是可以用,但是点击下一页,跳转到第二页的时候,下面的当前页并不是第二页!请指教。

主要问题就是,点击下一页的时候,已经跳转到下一页,但是当前页显示不正确!控制器
PHP codefunction people_daozhen($askdate,$askdate2,$name,$age,$age2,$phone,$sex,$zxjb,$comefrom,$area){
   
   
  if(!empty($_POST['askdate'])){
  $data ['askdate']=$_POST['askdate'];
  }
   
  if(!empty($_POST['askdate2'])){
  $data ['askdate2']=$_POST['askdate2'];
  }
  if(!empty($_POST['name'])){
  $data ['name']=$_POST['name'];
  }
  if(!empty($_POST['age'])){
  $data ['age']=$_POST['age'];
  }
  if(!empty($_POST['age2'])){
  $data ['age2']=$_POST['age2'];
  }
  if(!empty($_POST['phone'])){
  $data ['phone']=$_POST['phone'];
  }
  if(!empty($_POST['sex'])){
  $data ['sex']=$_POST['sex'];
  }
  if(!empty($_POST['zxjb'])){
  $data ['zxjb']=$_POST['zxjb'];
  }
  if(!empty($_POST['comefrom'])){
  $data ['comefrom']=$_POST['comefrom'];
  }
  if(!empty($_POST['area'])){
  $data ['area']=$_POST['area'];
  }
   
   
  $this->load->helper ( 'url' );
  $this->load->database();  
  $this->load->library ( 'pagination' );
   
   
  $config ['per_page'] = '10';
  $config ['base_url'] = base_url(). 'index.php/people/people_daozhen/'.$askdate.'/'.$askdate2.'/'.$name.'/'.$age.'/'.$age2.'/'.$phone.'/'.$sex.'/'.$zxjb.'/'.$comefrom.'/'.$area;
   
  $this->load->model ( 'people_mdl','',TRUE );
 
  $data ['datalist'] = $this->people_mdl->people_list2 ( $config ['per_page'], $this->uri->segment ( 13 ) ,$askdate,$askdate2,$name,$age,$age2,$phone,$sex,$zxjb,$comefrom,$area);
  $config ['total_rows'] =$this->people_mdl->people_sum2($askdate,$askdate2,$name,$age,$age2,$phone,$sex,$zxjb,$comefrom,$area);
   
  $config['uri_segment'] = 3;
  $config ['full_tag_open'] = '

';
  $config ['full_tag_close'] = '

';
  $config ['first_link'] = '首页';
  $config ['first_tag_open'] = '
  • '; 
      $config ['first_tag_close'] = '
  • ';
      $config ['last_link'] = '尾页'; 
      $config ['last_tag_open'] = '
  • ';
      $config ['last_tag_close'] = '
  • ';
      $config ['next_link'] = '下一页';
      $config ['next_tag_open'] = '
  • ';
      $config ['next_tag_close'] = '
  • ';
      $config ['prev_link'] = '上一页';
      $config ['prev_tag_open'] = '
  • ';
      $config ['prev_tag_close'] = '
  • ';
      $config ['cur_tag_open'] = '
  • ';
  • 본 웹사이트의 성명
    본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.

    뜨거운 기사 태그

    메모장++7.3.1

    메모장++7.3.1

    사용하기 쉬운 무료 코드 편집기

    SublimeText3 중국어 버전

    SublimeText3 중국어 버전

    중국어 버전, 사용하기 매우 쉽습니다.

    스튜디오 13.0.1 보내기

    스튜디오 13.0.1 보내기

    강력한 PHP 통합 개발 환경

    드림위버 CS6

    드림위버 CS6

    시각적 웹 개발 도구

    SublimeText3 Mac 버전

    SublimeText3 Mac 버전

    신 수준의 코드 편집 소프트웨어(SublimeText3)

    해결 방법: 조직에서 PIN 변경을 요구합니다. 해결 방법: 조직에서 PIN 변경을 요구합니다. Oct 04, 2023 pm 05:45 PM

    해결 방법: 조직에서 PIN 변경을 요구합니다.

    Windows 11에서 창 테두리 설정을 조정하는 방법: 색상 및 크기 변경 Windows 11에서 창 테두리 설정을 조정하는 방법: 색상 및 크기 변경 Sep 22, 2023 am 11:37 AM

    Windows 11에서 창 테두리 설정을 조정하는 방법: 색상 및 크기 변경

    Windows 11에서 제목 표시줄 색상을 변경하는 방법은 무엇입니까? Windows 11에서 제목 표시줄 색상을 변경하는 방법은 무엇입니까? Sep 14, 2023 pm 03:33 PM

    Windows 11에서 제목 표시줄 색상을 변경하는 방법은 무엇입니까?

    Windows 11에서 작업 표시줄 축소판 미리 보기를 활성화 또는 비활성화하는 방법 Windows 11에서 작업 표시줄 축소판 미리 보기를 활성화 또는 비활성화하는 방법 Sep 15, 2023 pm 03:57 PM

    Windows 11에서 작업 표시줄 축소판 미리 보기를 활성화 또는 비활성화하는 방법

    Windows 11/10 복구의 OOBELANGUAGE 오류 문제 Windows 11/10 복구의 OOBELANGUAGE 오류 문제 Jul 16, 2023 pm 03:29 PM

    Windows 11/10 복구의 OOBELANGUAGE 오류 문제

    화웨이 GT3 Pro와 GT4의 차이점은 무엇입니까? 화웨이 GT3 Pro와 GT4의 차이점은 무엇입니까? Dec 29, 2023 pm 02:27 PM

    화웨이 GT3 Pro와 GT4의 차이점은 무엇입니까?

    Windows 11의 디스플레이 크기 조정 가이드 Windows 11의 디스플레이 크기 조정 가이드 Sep 19, 2023 pm 06:45 PM

    Windows 11의 디스플레이 크기 조정 가이드

    Windows 11에서 밝기를 조정하는 10가지 방법 Windows 11에서 밝기를 조정하는 10가지 방법 Dec 18, 2023 pm 02:21 PM

    Windows 11에서 밝기를 조정하는 10가지 방법

    See all articles