in reply to Syntax Questions
Again, I have to be very broad here. I don't know if you're pulling from a database, or a text file, or what. If I were to pull from a database, I'd be using indexes and limits. I would run an SQL query such as this:
SELECT Title, Entry, Author FROM GBook ORDER BY SubDate LIMIT 0, 10
In such a case, that means we're selecting 10 records starting at record #1 (I could have those numbers reversed). Then all I would have to do is keep track of what number to start on, and you can generate the previous/next based on that.
Anyhow, making each row a different color is also a matter of keeping track of what's going on. You might want to have a test to check what row its on. Even rows should get printed in one color, odd rows in another.
|
|---|