📜  3 个或更多的 foreach 数组 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:43.734000             🧑  作者: Mango

代码示例2
foreach ($product_id as $index => $h) {
    $v = $size_id[$index];
    $q = $quantity[$index];
    $insert_pending = "INSERT INTO pending_orders 
                            (cus_id,product_id,size_id,quantity,ip_address) VALUES 
                            ('$cus_id','$h','$v','$q','$ip_address')";
    $run2 = mysqli_query($con, $insert_pending);
}