Home >php教程 >php手册 >thinkphp3.2 分页 参数

thinkphp3.2 分页 参数

WBOY
WBOYOriginal
2016-06-07 11:37:041467browse

多条件查询 获取参数 怎么把获取的参数放入TP自带的分页代码中
// 获取参数
$intPage = I('get.p');
$intTutorID = I('get.tutor_id');
$strLevel = I('get.level');
$strSubject = I('get.subject');
$strCate = I('get.category');
$strGen = I('get.gender');
$strArea = I('get.area');

// 分页 带参数
$Page = new \Think\Page($intCount,10);
$Page->parameter = $intPage;
$Page->parameter .= "&level=".$strLevel;
$Page->parameter .= "&subject=".$strSubject;
$Page->parameter .= "&category=".$strCate;
$Page->parameter .= "&area=".$strArea;
$Page->parameter .= "&gender=".$strGen;

AD:真正免费,域名+虚机+企业邮箱=0元

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn