Jump to content

View more Link on Dynamic page


denoteone

Recommended Posts

I have a template that I want to load article teasers into but only 3 at a time and if the total number of articles in more then three create a "next" button.

 

My thoughts... are to use Sessions to store the current article count and then when you click the "view More" or "back" link have it refresh the page and pass a variable "add" or "sub" in the url. This will tell the script to add 3 or remove 3 from the variable stored in the session.  So when I loop through and print out the articles it prints the right ones.

 

Also should I store my sql query return in a session variable so i dont have to keep accessing the database?

 

Any thought or ideas would help. 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.