$stmt = $mysqli->prepare("INSERT INTO tabl_shipments (id, id_shipments, id_prill, num_amout, weight_kg, metall, sort, weight_zag) VALUES (?, ?, ?, ?, ?, ?, ?, ?)");
$id = 1;
$stmt->bind_param("isssssss", $id, $id_shipments, $id_prill, $num_amout, $weight_kg, $metall, $sort, $weight_zag); 
$stmt->execute(); 
        $ar = array_map(function ($el1, $el2) {
    return str_replace([ '', ',' ], [ '', '.' ], $el1) * $el2;
},
$Array_1,  $Array_2); 
        for ($i = 0 ; $i < $rows ; ++$i)
    {
        $row = mysqli_fetch_row ($result);
        echo "<tr>";
            for ($j = 0 ; $j < 9 ; ++$j) echo "<td>$row[$j]</td>";
        echo "</tr>";
    }
    echo "</table>";