The CodeIgniter search page is a bit problematic. I have many query conditions, so it may look a little longer. the page can be used, but when I click the next page to jump to the second page, the current page below is not the second page! Please advise. The main problem is that when you click the next page, the next page is displayed, but the current page is incorrect! Controller PHPcodefunctionpeople_daozhen ($ askdate, $ askdate2 CodeIgniter search page has some problems
I have many query conditions, so it may look a little longer. the page can be used, but when I click the next page to jump to the second page, the current page below is not the second page! Please advise.
The main problem is that when you click the next page, the next page is displayed, but the current page is incorrect! Controller
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 ['region']) {
$ Data ['region'] =_ _ POST ['region'];
}
$ This-> load-> helper ('URL ');
$ This-> load-> database ();
$ This-> load-> library ('pagination ');
$ Config ['per _ page'] = '10 ';
$ Config ['base _ url'] = base_url (). 'index. php/people/lele_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'] = 'homepage ';
$ Config ['first _ tag_open '] ='
';
$ Config ['first _ tag_close '] ='';
$ Config ['last _ link'] = 'Last page ';
$ Config ['last _ tag_open '] ='
';
$ Config ['last _ tag_close '] ='';
$ Config ['next _ link'] = 'next page ';
$ Config ['next _ tag_open '] ='
';
$ Config ['next _ tag_close '] ='';
$ Config ['prev _ link'] = 'previous page ';
$ Config ['prev _ tag_open '] ='
';
$ Config ['prev _ tag_close '] ='';
$ Config ['cur _ tag_open '] ='
';