Hi guys, this is a brainteaser for me and I'm wondering if you could help. Lets say I'm looping through these results from MySQL, and the result set is as follows:
ID------Name
4------ Anthony
76------John
31------Andrew
98------Sonia
If I was on the 2nd row (with an id of 76, name John), and I wanted for some to include a sentence saying "The next ID will be: {ID}", how would I go about doing that?
So the question really is, how to you jump a row, get the id, then go back to the row you were on?
Thanks!
Anthony