Hey,
Right now I am using (http://www.i-fubar.com/random-string-generator.php) but I need to generate the string so it can be used as a Ticket ID.
The only thing is, this ID needs to be unique to the ticket - So how would I go about generating a unique alphanumeric string?
It needs to be like this: LSOK32-HSJK39 (So 6 characters, hyphen then another 6 characters)
I only just realised that the thing generated might not be unique so thats why I am posting.
Simply, My idea was:
Generate
Check if it is already in DB
If so, Regenerate
Else, set it to the query
The only thing is, I dont know how to get the hyphen in and how to regenerate the code?
This sounds all a bit stupid and I presume its pretty easy to do!
Ill try to +Rep all useful answers
Moved by Invent (Forum Moderator) from Designing & Development: Please post in the correct forum next time, thanks.







