How do I achieve something like this http://www.pentagram.com/work/#/all/all/newest/ , whereby the pagination database query is done via slider.
I already have my slider working, what i want is to connect the slider to the mysql database just as is done on the above site.

Your help will be appreciated.