Some people were interested in seeing the code I used to create the pagination for WineLog, which was based on the style of pagination used on sites like Digg and Flickr. I’ve put together a little demo which should help out anyone who is trying to create the same effect on their site.

(digg-style pagination demo)

Paginate Your Site Like Digg was last updated on July 7, 2006. Bookmark the permalink.

Comments (2)

Hi, thanks for the code, (pagination code). i managed to customize it, it works well but i keep getting this and i’m unable to fix “Notice: Use of undefined constant num – assumed ‘num’ in C:\xampp\htdocs\KE500\ctest.php on line 58”

56. $query = "SELECT COUNT(*) as num FROM $tbl_name";
57. $total_pages = mysql_fetch_array(mysql_query($query));
58. $total_pages = $total_pages[num];

help please

Comments are closed.