Actually, it was a simple index of websites, and then the index got big and wanted sorting and searched, so i made it into a database thingy, and i thought hey why not make it a web ring too? So i did.
The thing is, being n00b and all, i didn't think hard enough. What happens is when they sign up for the index, they're assigned a number. If, e.g., their site is #4, when someone clicks the "next" link on their page, this script sends them to site #5. And viceversa for "last." And of course, if they come from the last URL, then they go to the first one, which i was smart enough to use count() for that.
But now i can't delete sites from the index.
Is there a way to fetch a numerically ordered array from the ID column? Or is that what you're showing me? I can't quite decipher it atm.
I shouldn't drink and post.