<?php 
include "config.php";

$code = $_POST['productcode'];
$sapcode = $_POST['sapcode'];
$name = $_POST['productname'];
$hsn = $_POST['hsn'];
$unit = $_POST['unit'];
$price = $_POST['price'];
$unittokg=$_POST['unittokg'];
$tax = $_POST['tax'];
$product_category = $_POST['product_category'];
$sql = "insert into productdetail (productcode,sap_code,productname,hsn,unit,price,unittokg,tax,product_category,editdate,edittime,editby,status) values('$code','$sapcode','$name','$hsn','$unit','$price','$unittokg','$tax','$product_category','','','','')";
echo $sql;
 $go = mysqli_query($connect,$sql);
  header('Location:itemmaster.php');

?>