title: How to next next and previous ids in an ordered search when on a specific id? (MySQL)
body: <p>I have an MLS site that you can search and it gives you a list of results.  I then store the mysql string in a session.</p>
  
  <p>When you click on a result you go to the page listed by its property MLS number.</p>
  
  <p>From that page I have a forward and backward button that is supposed to go back and forth through properties.</p>
  
  <p>How do I use that same stored query string to find the next result and previous result depending on what property I am looking at?</p>