dynamic links for multiple pages?
Posted: Tue Jun 22, 2010 12:12 pm
Hi,
Basically what I need to do is the same as the forum pages hear where it says "page 1 of 100 pages" and then has the 1,2,3,4,5...100 links to go to the pages.
I will be querying a database with several hundred records and displaying them 10 or 20 records to a page and need a way for the user to click to the next page.
I have an idea how I can do that by using mysql_num_rows() to get the count and then a for loop to create the row of links but the actual pages is a problem.
Are they actually separate pages or just echoed out information in the same page that changes when the link is clicked? And is there a lot to this or is there a known script that will do the job for me?
Thanks
Basically what I need to do is the same as the forum pages hear where it says "page 1 of 100 pages" and then has the 1,2,3,4,5...100 links to go to the pages.
I will be querying a database with several hundred records and displaying them 10 or 20 records to a page and need a way for the user to click to the next page.
I have an idea how I can do that by using mysql_num_rows() to get the count and then a for loop to create the row of links but the actual pages is a problem.
Are they actually separate pages or just echoed out information in the same page that changes when the link is clicked? And is there a lot to this or is there a known script that will do the job for me?
Thanks