您现在的位置是:首页 > PHP技术PHP技术
thinkphp5.1 分页代码,跳转保留参数
2022-09-15【PHP技术】3376 人已围观
简介搜索表单可以使用get方式提交。分页代码处理如下$data=input('param.'); $lists...
搜索表单可以使用get方式提交。分页代码处理如下
$data = input('param.');
$lists = Db::name('user')->where($where)->paginate(15, false, ['query'=>$data ] );接收get参数的另一种写法
Order::paginate(1,false, ['query' => request()->param()]);
关注宁波网站建设博客,更多精彩分享,敬请期待!
Tags:
很赞哦! ()
相关文章
随机图文
thinkphp imagettftext(): Could not find/open font验证码无法显示报错
thinkphp imagettftext(): Could not find/open font tp5.1验证码无法显示.打开debu...
Mysql进阶之in详解
MySQL IN 语法 IN 运算符用于 WHERE 表达式中,以列表项的形式支持多个选择,语法如下: WHERE column IN ...
网站安全代码thinkphp3.1密码强度检测
/** *检查密码复杂度 */ publicfunctioncheckPassword($pwd){ if($pwd==null){...
thinkphp模板中数组的输出
thinkphp的数组在模版输出是频率很高的操作. 我在后action内一般是把数据都绑定到变量内,当然是以数组的形式.select后的操作...




微信收款码
支付宝收款码