Automatically Generate Second Page
Posted: Fri May 07, 2010 5:07 am
Hi and I hope you can help
Whilst this is a question on pagination, I'm not looking for help on displaying multiple results over several pages - I 'know' how to do this and use this already on my site - I have a slightly different problem.
I have news articles stored in a SQL database and when one is viewed it can overflow outside it's designated area - I'd like to be able to automatically create a page 2 (or more) link for the article if possible.
I could add the second page to the database and link to it manually but this appears to be a silly solution - I also don't want to use the html overflow:auto as this adds nasty scroll bars and spoils the look of the site.
I'm going to have a play with my current pagination script and see if I can change it some way (I was thinking of using word count to display the second page, rather than records returned (?)) but in the mean time would you have any suggestions/advice.
I have searched for a solution but without success - the standard pagination solution tends to dominates the results.
Thanks in advance.
Chris
Whilst this is a question on pagination, I'm not looking for help on displaying multiple results over several pages - I 'know' how to do this and use this already on my site - I have a slightly different problem.
I have news articles stored in a SQL database and when one is viewed it can overflow outside it's designated area - I'd like to be able to automatically create a page 2 (or more) link for the article if possible.
I could add the second page to the database and link to it manually but this appears to be a silly solution - I also don't want to use the html overflow:auto as this adds nasty scroll bars and spoils the look of the site.
I'm going to have a play with my current pagination script and see if I can change it some way (I was thinking of using word count to display the second page, rather than records returned (?)) but in the mean time would you have any suggestions/advice.
I have searched for a solution but without success - the standard pagination solution tends to dominates the results.
Thanks in advance.
Chris