RE: [PHP] customer ids
| From: | WeberSites LTD | Date: | Wed, 06 Jun 2007 20:13:42 +0000 |
| Subject: | RE: [PHP] customer ids | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-256236@lists.php.net to get a copy of this message | ||
Check out some of the Password Generators on the list
http://www.php-code-search.com/?q=password%20generator
berber
-----Original Message-----
From: blueboy [mailto:ross@aztechost.com]
Sent: Wednesday, June 06, 2007 4:40 PM
To: php-general@lists.php.net
Subject: [PHP] customer ids
Hi,
I want to create random customer ids. I have an auto incremented coulumn but
I would rather have a 6-8 digit/letter id randomly generated that can be
used as a unique identifier across 3 tables. Does anyone have a algorithm to
generate such a string and can you give the odds against 2 duplicate stings
being generated?
I know this is a strange ask.
R.
--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php