The PHP search code can only search for one page, but clicking on any page number does not work.
木木
木木 2021-05-13 10:43:16
0
2
1595

During fuzzy search, the required search information will be queried.

But only the first page can be seen. Click the next page or any page and the following picture will appear and return to the main page.

微信截图_20210513103643.png

The following is the search function code

//File search

public function dasousu0(){

if( session('USERNAME') == '){

#                                                                                                                                                                                                                                                                                                     through {

# Return "& LT; Script & GT;

Alert ('Please enter the search keyword!');

## Location.href = 'DANANGANLIST';

# #                                                                                                  gt;where('ifzztg' . ','%'.$sousu0.'%')

                                                                                           - >whereOr('tel','like','%'.$sousu0.'%')

                            ->whereOr('card','like','%'.$sousu0.' %')

-& gt; Order (' ID ASC ')-& GT; Paginate (20, FALSE, [' Query '= & GT; Request ()-& GT; Param ()];

$ page = $ list-& gt; render ();

## $ listcount = db ('userInfo')-& gt ('ifzztg', 0)

                        ->where('bianhao','like','%'.$sousu0.'%')

->whereOr('danwei','like','%'.$sousu0.'%')

                        ->whereOr('name','like','%'.$sousu0.'%')

                        ->whereOr('tel','like','%'.$sousu0.'%')

                        ->whereOr('card','like','%'.$sousu0.'%')->count();

                    $lb = '全部';

                    $qxid = session('QUANXIANID');

                    if($list){

                        return $this->fetch('dangan',['list'=>$list,'listcount'=>$listcount,'page'=>$page,'lb'=>$lb,'qxid'=>$qxid]);

                    }else{

                        return "<script>

                            alert('无记录!');

                            location.href='danganlist';

                        </script>";

                    }

                }  

            }

    }

各位大神,帮帮小白、、、、、

木木
木木

reply all(2)
采县「vic」

Print the input value to see if there is any data.

Peter_Zhu

Check routing

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template