# Pagination help - need drop down like Phpmyadmin

**URL:** <https://www.ruby-forum.com/t/pagination-help-need-drop-down-like-phpmyadmin/111537>\
**Category:** Rails\
**Created:** [August 8, 2007, 12:02pm UTC](https://www.ruby-forum.com/t/pagination-help-need-drop-down-like-phpmyadmin/111537 "2007-08-08T12:02:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![veeraa2003](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b487fb/32.png) [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Post date:** [August 8, 2007, 12:02pm UTC](https://www.ruby-forum.com/t/pagination-help-need-drop-down-like-phpmyadmin/111537/1 "2007-08-08T12:02:04Z")

</div>

Hello everybody,

I need a help as I know how to paginate the content from a table etc.

Here I want to display the links to pages in drop down box like in  
Phpmyadmin.  
Consider You have total number of page like 50. In the drop down box it  
will show the number as 1,2,3,4,5, 10, 20,30,40,45,46,47,48,49,50

If I select the page 30 then the numbers in the drop down box will  
automatically change as the numbers nearer to 30 like below.

1,2,3,4,5,10,15,20,25,26,27,28,29,30,31,32,33,34,35,40,45,50/

Hence I need a drop down box in which I can select a number to goto a  
page. After that the content inside the drop down box will automatically  
change as related to the current page.( same like goto page dropdown box  
in phpmyadmin\_).
