How to do Prev | Next on a website.

I am still relatively new to website development.  I am using Dreamweaver MX and the site is hosted on a Unix platform.

There is a feature I would like to implement.  Often I read forums and I like the prev | next functionality.  I often read about 50 entries before getting tired and I find some of the postings very interesting.

I want to give my readers a way to see all I am doing on a day-by-day basis to highlight all of my expertise.  

For non-web apps, I know I would never 'hard code' such info.  

I don't want to code an entire 'forum' as that's probably over my head, but I would like to know how to code unlimited prev | next functionality.  Each page would correspond to an 'interesting day' I had.  

Put the stuff in a native O/S text file?  a database entry? I looked at the source code for TechRepublic forum but I don't believe I'm seeing the server-side code.

Any help would be appreciated.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I really don't understand what you want to do besides dividing your forum in pages.
Are you looking for suggestions or just a summary of the requirements?

Basically, since you are using Unix you probably have PHP and/or Perl available, that would be your Server Side Scripting Language. The info storage dependes on your resources and needs. I personally have working forums using both. If you are not going to have that many visitors/posters using a text file shouldn't be a problem.

just create a database, create a table with a few fields to hold your 'interesting day' text then have a php page query the records in desc order.  then you can limit the number of 'days' to a couple and have next prev to query the others.

But to add to Esopo, I REALLY dont understand what you are trying to do.
Either way , (HTML, dynamic) you are going to have to insert pages or records ona daily basis.  If you have limited exp in databases, just stick with html pages and have the prev next link to the other html pages.

supportorangesAuthor Commented:
Thanks guys.  I have extensive system and database and programming experience, but limited web and PHP.  I have done ASP.

You mean desc order on date so the most recent stuff is shown first?  It won't be a problem for me to retrieve/display records.

Do I use something like a session variable to keep track of the page the user is viewing?  Would that be just a vanilla php variable?  

To reiterate:  all I am trying to do is code some prev | next functionality so there is no limit to the pages which can be dynamically created and shown.  Each page will have the same format and the content is about cool stuff which happens each day.  This 'diary' gives viewer a better insight into myself and my company.  Also, don't want to maintain separate html for each page.  Dynamic for me would be the best way to go.

Thank you for your assistance.


Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

If you are using MX, then this is EASY. (if you choose to let it do that for you )

Just open a new php file, then add the database connection in the application panel
add a query in the bindings panel
then make the paeg look as you wish
THEN under the application TAB, there is a 'recordset pageing' button.
youcan tell it how to look and it will place the proper buttons for you.

It does all the sql code for you, you then can adjust it as yo see fit.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
And I was getting ready to paste 20 lines of code. Sometimes I forget this is the DW area ;)
I started to, but I re-read the question, just in time.

I am still relatively new to website development. .......For non-web apps, I know I would never 'hard code' such info....

I assumed he was looking for built-in stuff if possible.

Good Luck supportoranges
And by the way, Welcome to EE!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Dreamweaver

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.