0

In the construction of our booking system client can view their bookings online. At the moment the URL of their page is created as a sequential number. So /booking1, /booking2, /booking3 etc...

I'd rather have unique name a bit like the JSFiddle way of doing it. A series of letters and numbers.

Is that possible?

4
  • You've asked the exact same question already: stackoverflow.com/questions/5422065/…. Commented Mar 31, 2011 at 15:21
  • Not exactly. And I also did not get a simple answer that I could work with. Thanks for the vote Commented Mar 31, 2011 at 16:23
  • Why have you marked it as accepted then? Commented Mar 31, 2011 at 16:25
  • Because at the time it answered the initial question but on further development their had to be an easier way of doing it. Thanks for the vote Commented Apr 1, 2011 at 10:15

3 Answers 3

3

Would uniqid be good enough for what you need?

http://php.net/manual/en/function.uniqid.php

Sign up to request clarification or add additional context in comments.

Comments

0

uniqid function seems to be what you are looking for.

Comments

0

you can use uniqid("bookingr", false);

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.