@foreach 1 numper
$i = 0;
foreach ( $signatures as $signature ) {
if($i==10){
break;
}
echo 'Signature ID: ' . $signature . $i;
$i++;
}
@foreach 1 numper
$i = 0;
foreach ( $signatures as $signature ) {
if($i==10){
break;
}
echo 'Signature ID: ' . $signature . $i;
$i++;
}
foreach array for 3 or more
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);
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us