Hi there,
I am having some trouble here.. .I am fairly new to php.
I am wanting to create a page on my site, that will generate a random number and assign it to the value $voucherID, then check that the number doesnt already exist in my database.
If the number exists already, I need to generate a new number...
If the number doesnt exist, then I want to have a user fill in a form that says Name, Date issued etc.. and store that data along with the voucherID into my database.
I have tried to do this several different ways, but I either end up with only the voucherID being stored in the database, and no other details, or I end up with several records for the same person and different voucher numebrs.
Is anyone able to give me some idea of how I should be doing this to make it work????