<?php

    include("session.php");
    
    if(isset($_POST['subbbe'])){
                                                                
                                                                
                                                                $goldNumberr=$_POST['stat']; 
                                                                $golddate=$_POST['cur-date']; 
                                                                $goldtime=$_POST['cur-time']; 
                                                                $goldhead=$_POST['cur-head']; 
                                                                $goldsub=$_POST['cur-sub']; 
                                                                $goldtype=$_POST['cur-type']; 
                                                                  
                                                             
                                                                        
                                                                $query4="insert into shippingHistory(shippingId, date, time, main_head, sub_head,type) 
                                                                values ('$goldNumberr',
                                                                        '$golddate',
                                                                        '$goldtime',
                                                                        '$goldhead',
                                                                        '$goldsub', '$goldtype'
                                                                        )";
                                                                        
                                                                $ressu=mysqli_query($conn,  $query4);
                                                                if($ressu){
                                                                    
                                                                    $url = 'main.php';   
                                            
                                                                    echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">';
                                                                }else{
                                                                    echo 'Problem updating records';
                                                                }
                                                                
                                                                
                                                            }
                            
                            

?>