I like to seek to your assistance in any measure.I need your help on how to go about This:
I am developing a promotional site where user will be issued a ticket(manually ) which will be a unique 10 digit alpha-numeric digits.The ticket will be issued out manually at a Company sales point once they purchase at the store. This is intended for this season's promotion. The user will use the Ticket no. to fill out a form provided online.
User will enter this Ticket number along into a form on the website.
Users can enter as many ticket number as they wish but no two user can enter same ticket number.
The Ticket number will be selected at random for The Promotion winner.
I have come accross the PHP function for generation of random number
Use mt_rand( ):
// random number between $upper and $lower, inclusive
$random_number = mt_rand($lower, $upper);
I plan that user will create an account on the site if they do not have one already.And can add more pin(ticket no) anytime to increase their chance.
I need help on how to deploy this in relation to connecting the generated Ticket Pins to be authenticated in mysql for validation.
So I do not if I should store the Ticket Pins in the database,or is their a better option?
Please help will with useful guide on how to execute this task.
Thanks for you usual support
Sincerely
kossanah
I am developing a promotional site where user will be issued a ticket(manually ) which will be a unique 10 digit alpha-numeric digits.The ticket will be issued out manually at a Company sales point once they purchase at the store. This is intended for this season's promotion. The user will use the Ticket no. to fill out a form provided online.
User will enter this Ticket number along into a form on the website.
Users can enter as many ticket number as they wish but no two user can enter same ticket number.
The Ticket number will be selected at random for The Promotion winner.
I have come accross the PHP function for generation of random number
Use mt_rand( ):
// random number between $upper and $lower, inclusive
$random_number = mt_rand($lower, $upper);
I plan that user will create an account on the site if they do not have one already.And can add more pin(ticket no) anytime to increase their chance.
I need help on how to deploy this in relation to connecting the generated Ticket Pins to be authenticated in mysql for validation.
So I do not if I should store the Ticket Pins in the database,or is their a better option?
Please help will with useful guide on how to execute this task.
Thanks for you usual support
Sincerely
kossanah
Comment