Week 1 5
Week 2 5
Week 3 6
Week 4 4
Week 5 0No items in this section
Week 6 0No items in this section
Finale 0No items in this section
Generate and Send Pin – A
Now admin can view all the pin request and ready to send them. First, we need to create a unique pin for this will use rand() function. When admin will click on the send button it will run the script. Here first we will calculate the number of pins needs to send. It depends on the amount.
For example in this project our product cost or one pin cost is Rs. 300. So we will divide the total amount with the 300 and get the number of pins.
After knowing the number of pins, we need to run a loop for each pin that will generate each time an unique pin and will store in the SQL table pin_list.