<?php
	//Connects to your Database
	include "../db_connection/db_connection.php";
	include "../config/config.php";		
	$page_id	=	base64_decode(base64_decode(base64_decode($_GET['page_id']))); //THIS IS PAGE ID  
	                  
	//cat_name,d_no,hdes_name,imgInp
if($page_id==1) //this is for basic details add page	
{ 		
		
		$lob		=	$_POST['lob']; 
		$lob    	= 	str_replace("/", "-", $lob);
		$sil_wght	=	$_POST['sil_wght']; 
		$pur_wght	=	$_POST['pur_wght']; 
				
		$INSRT		= "INSERT INTO `silver_entry`( `entry_date`, `silver_weight`, `pure_weight`, `post_dt`) VALUES ('$lob','$sil_wght','$pur_wght','$cur_time')";		
		$QURY		= mysqli_query($connect,$INSRT);
		
?>
		<script type="text/javascript">
            //alert("Data inserted successfully");
            //history.back();
            window.location='../silver_entry_list.php';
        </script>
<?php
}
?>
	
