| [reply] |
I understand what you're trying to achieve, I'd just think it'd be easier if you specified where the data (that you'd like to split up) came from. There are numerous "page" modules on cpan. E.g. if you use Class::DBI, there are Class::DBI::Pager and Class::DBI::Plugin::Pager, but there's also DBIx::Pager... etc. etc.
--
b10m
All code is usually tested, but rarely trusted.
| [reply] |
And Class::DBI::Plugin::HTML , which has an html_table_navigation() routine you could steal ideas from even if you couldn't use it directly.
| [reply] |
Thanks again "b10m" for all the leads and advice. However, the way I set things up was certainly NOT the way most sites would have generated their pages using MySQL... That is, I used Limit and have a script for each page (50 ads per page) - in other words, I don't have one script that generates all the pages, HTML, navigation etc. - I just couldn't figure it out and so I went the Limit route instead. As for the navigation, what I was hoping to find was a script that would use the directory of the pages on the server to generate the navigation. Then each time I made a new page, I would simply modify the navigation script by adding the new page to the list. For example:
2005_pg1.shtml
2005_pg2.shtml
2005_pg3.shtml
(etc.)
Is something like that possible?
Thanks again,
-Bob
| [reply] [d/l] |