supportoranges
asked on
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.
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.
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.
Rockman
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.
Rockman
ASKER
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.
Gary
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.
Gary
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
<quote>
I am still relatively new to website development. .......For non-web apps, I know I would never 'hard code' such info....
</quote>
I assumed he was looking for built-in stuff if possible.
Good Luck supportoranges
<quote>
I am still relatively new to website development. .......For non-web apps, I know I would never 'hard code' such info....
</quote>
I assumed he was looking for built-in stuff if possible.
Good Luck supportoranges
And by the way, Welcome to EE!
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.