MLM(Multi Level Marketing) Website Using PHP - Binary Plan

Part 14(A) - Generate and Send Pin

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.