Re: [PHP] Generating PINs

2002-05-14 Thread Alvin Tan
Hi, Thanks to everyone for help on this matter. Combined with some SQL insert statements and loops, it works great. Now to get the numbers to a printer... As usual, this list ROCKS @lvin At 03:23 PM 5/14/02, Miguel Cruz wrote: >On Tue, 14 May 2002, Alvin Tan wrote: > > This is not really

Re: [PHP] Generating PINs

2002-05-14 Thread Miguel Cruz
On Tue, 14 May 2002, Alvin Tan wrote: > This is not really a PHP question, but seeing that the final application > will be in PHP, I figured this'll be the best place to start. > > I have a client who wants to release a unique PIN for each product they > sell which works as a key to get more good

Re: [PHP] Generating PINs

2002-05-13 Thread Evan Nemerson
Usually software uses a specific serial number format, rather than a remote database of valid numbers. for instance, the fifth character must be the third % tenth. Something like that. 3HH5R could be random, and E59VB and 7SX99 would be determined by a complex algorithm operating on the five c

RE: [PHP] Generating PINs

2002-05-13 Thread Niklas Lampén
Well, you could produce those randomly. Store all the PINs to a database and before storing compare that it doesn't exist yet. Here is a piece of code to produce PINs in _exactly_ that format you want. I've done it for myself, but feel free to use it in any way you like: Niklas -Original

Re: [PHP] Generating PINs

2002-05-13 Thread Daniel Tryba
On Tue, May 14, 2002 at 12:13:08PM +0800, Alvin Tan wrote: > I have a client who wants to release a unique PIN for each product they > sell which works as a key to get more goodies on the website. How/where can > I get a large number of PINs, much like a software key (e.g. > 3HH5R-E59VB-7SX99 o