您现在的位置是:首页 > PHP技术PHP技术
thinkphp5.1 分页代码,跳转保留参数
2022-09-15【PHP技术】3005 人已围观
简介搜索表单可以使用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:
很赞哦! ()
相关文章
随机图文
php变量布尔值验证详细参考
使用 PHP 函数对变量$x进行比较表达式gettype()empty()is_null()isset()boolean:if($x)$x ...
Thinkphp3.1.3中的redirect详解
页面跳转是php编程中常用的方法,今天说说thinkphp3.1.3中的redirect.tp跳转有success和error这二个参数有...
thinkphp模板中数组的输出
thinkphp的数组在模版输出是频率很高的操作. 我在后action内一般是把数据都绑定到变量内,当然是以数组的形式.select后的操作...
Thinkphp5.1.30查询和查询分页代码
查询是非常频繁使用的功能。thinkphp5.1.30查询功能一般流程如下$keywords=Request::param('key...




微信收款码
支付宝收款码