The query database is displayed on the page. When you click on the second page, the data is not the data you want to query.
卢小强
卢小强 2019-09-19 16:35:07
0
0
840

public function userlist(Request $request){
$data=$request->param('hotel_name');
if($data) {
$map = $data;
$user =new User_1Model();
$list =$user->where('hotel_name','like',"%$map%")->paginate(5);
}
else {
$list = User_1Model::paginate(5);
}
$count = User_1Model::count();
$this->assign('list'

卢小强
卢小强

reply all (0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!