1$i = 0;
2foreach ( $signatures as $signature ) {
3 if($i==10){
4 break;
5 }
6 echo 'Signature ID: ' . $signature . $i;
7 $i++;
8}
9
1foreach ($product_id as $index => $h) {
2 $v = $size_id[$index];
3 $q = $quantity[$index];
4 $insert_pending = "INSERT INTO pending_orders
5 (cus_id,product_id,size_id,quantity,ip_address) VALUES
6 ('$cus_id','$h','$v','$q','$ip_address')";
7 $run2 = mysqli_query($con, $insert_pending);
8}