Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1098085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:31:36+00:00 2026-05-17T00:31:36+00:00

Not sure if phrasing this right, seems simple but not sure best way to

  • 0

Not sure if phrasing this right, seems simple but not sure best way to do it. Basically, I’ve got a simple database identifying items of clothing. Just ItemID(PK), ItemName and ItemLink(just the name of the jpeg for that item, which I’ll use in .net to construct the correct image url for that item).

Client doesnt want anything fancy, just to click up and down and have the page move thru the DB simply displaying next and previous itenms. So in my SQL procedure, I always just want to access the next image in the DB. I can’t figure how to do this without adding an extra column that just displays position in the DB, something like just numbering from 1 to whatever (probably about forty or so images). Start out with ‘1’ on the first page load, store that as a session variable (or cookie), and iterate thru that way? Seems like should be something cleaner.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T00:31:37+00:00Added an answer on May 17, 2026 at 12:31 am

    Depending on how many images your database contains, it would be create an image object with ID, Name and Link.

    Then when page loads get all images from database and create a list of image objects.

    This way when user clicks next / previous buttons you can just move forward or backward in the list.

    Would mean storing a bit extra in memory but only one trip to the database.

    If you need a code sample just let me know 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not sure if I'm phrasing this in the best way but I have
I'm not sure I'm phrasing this right, but I'm pretty sure I'm looking for
Not sure the best way of phrasing this so bear with me. Within Codeigniter
not sure whether I'm phrasing this question correctly but .. how do i get
Not sure if this is the appropriate place for this question, but it seems
Not sure of the best way of achieving something... We've got a number of
Not sure the most effient way to do this. Bash seems the easiest, I
Okay, I am not sure if I am phrasing this correctly but I am
Not sure if this is the right stack exchange to ask this, but here
Not sure if I can word this right but here we go. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.