Jump to content

creating a list of vouchers from a DB


turbosatan

Recommended Posts

Hi. I am new so sorry if this is a very obvious question or in the wrong place

 

I am creating a web application which will provide a product based on a voucher code which the customer will be sent.

 

There will be more than one product and the vouchers all need to be unique and only used once.

 

Is there a good snippet of code for creating voucher codes of say 16 digits ensuring there are no duplicates and tyhen to associate them with a certain product?

 

what i need in a few steps

 

1. create up to 100k unique voucher codes and ask which product to assign them to.

2. print these voucher codes out based on a template ensuring there are no duplicates of previous print jobs.

3. using an online form recognise these voucher codes and do a specified action as a result of this.

 

If it helps the vouchers will need to print onto cd's so having the option to print one unique voucher code onto each cd would be very good.

 

I look forward to hearing back from you

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.