First I know that sequential and random cannot co-exist. Let me explain what I'm attempting to use this for.
I'm printing tags that will be used in the same way you win Pepsi stuff online. You will get a randomly generated code on the tag to check to see if you won at a website. The data needs to be usable by both the printer and the web server so I thought PHP and a comma delimited database structure might be a good choice. One data setup I thought would work is something like this: 1 D56ER48 3 2 IU89S33 0 3 A8W7E95 0 4 5554SSR 1 The first column being a key, which the printer requested, the second being the random tag, and the third being what prize package they get, or don't get. The third column could be randomly assigned as well but it would be nice to say of the X number of records make 100,000 winners for package 1, 50,000 for package 2, etc. As was mentioned I don't want this script to take ten years to output 2 million records and I wasn't sure if there are size constraints with comma delimited files. Hope this clarifies things a little more. Steve
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php