Tp5 paging problem

after the backend queries the data by conditional paging, the front-end template displays the paging as shown in the figure. Now return all the data when you click on the second page. How to bring the previous query conditions.

Mar.01,2021

add the third parameter
paginate to the paged query paginate function ($this- > page_size, false, ['query' = > request ()-> param ()]);

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35477-2bf63.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35477-2bf63.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?