Retaining value after refresh

Codes here !

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 1
Joined: Wed Jan 03, 2018 4:38 am

Wed Jan 03, 2018 4:42 am

i created a filter through sql query. At the same page, it has pagination at the bottom of the site.

Whenever i turned to next page say from page 1 to page 2, the filter is gone. How can i retain my filter even after i refresh or change page? or is there a better way for filter system?

User avatar
php-forum Fan User
php-forum Fan User
Posts: 828
Joined: Mon Feb 22, 2016 5:52 pm

Wed Jan 03, 2018 4:14 pm

You'll need to post some code or at least give us a clue.

php-forum Fan User
php-forum Fan User
Posts: 595
Joined: Fri Apr 01, 2016 2:18 am

Wed Jan 03, 2018 10:51 pm

whenever the filter is updated, you can store it in a SESSION, and restore it on every other page.

Post Reply