This my code
$_SESSION['poraw'] = substr(md5(time()), 0, 16);
$userid= $_SESSION["userid"];
$today = date('Y-m-d');
$month = $_POST['month'];
for($i = 0; $i < count($_POST['id']); $i++){
$id = $_POST['id'][$i];
$resin = $_POST['resin'][$i];
$hasil = $_POST['hasil'][$i];
$sql="INSERT INTO po_supplier_temp (unique_code,po_customer_month,resin,qty,username)
VALUES ('".$_SESSION['poraw']."','$month','$resin','$hasil','$userid')";
$sql = $conn->query($sql);
}
Current results:
if $resin same , i want $hasil plus it (+) , before save to dabatase and only one name $resin to database in same time
Like this:
thanks