Hi there everyone!
I'm trying to solve an issue that I have and it's definitely gotten the better of me. Here's what I'd like to do.
Allowed chars are a-z and 0-9.
entering items into a database, I would like to increment an id to them in the following way.
First entry gets "a". then it will go to "b", "c", etc, and through "0"-"9". Once it gets to "9", the first position reverts to "a" and an "a" gets appended to that, so the id at 37 would be "aa" 36 entries later and you would have an id of "ba". Only once it got to "00" would it add an additional space, giving it an id of "aaa". and so on and so forth, forever and ever.
I thought at first I had it figured out, but my attempt would get the last character to "0" and then append an "a", giving me an id of "0a".
Could I get some help on how to handle this? It would be greatly appreciated!
thanks,
json