How do I move around in an array? I need to know how do I tell the pointer where I am in the array and how to move to the next or previous value in the array. Basically, I'm trying to do some complex NEXT / PREVIOUS buttons.
For example: Let's say I have an array that's called paging. In that array are the following values: 1,34,5,8,2,20,7. The values represent a row in the database. The database is a bunch of articles.
The user is on article number 5. (read.php?articleID=5)
How do I move back and forward in the array, so I can make the next button go to articleID 8 and the previous articleID 34.