<?php
	include 'inc/conx.php';
	
	//$date = (trim($_POST['date']));
	$item_number3 = (trim($_POST['item_number3']));
	$product_id3 = (trim($_POST['product_id3']));
	$name3 = (trim($_POST['name3']));
	$unit3 = (trim($_POST['unit3']));
	$category3 = (trim($_POST['category3']));
	$cost_price3 = (trim($_POST['cost_price3']));
	$selling_price3 = (trim($_POST['selling_price3']));
	$quantity3 = (trim($_POST['quantity3']));
	$opening3 = (trim($_POST['opening3']));
	$reorder_level3 = (trim($_POST['reorder_level3']));

	$change_date = explode("/", $date);
	$show_date = $change_date[1]."/".$change_date[0]."/".$change_date[2];
	$php_date = $change_date[2]."/".$change_date[0]."/".$change_date[1];

	
	$sql = $db->query("INSERT INTO itemsetup (uei, item_code, item_name, unit, category, purchase_price, selling_price, stock, alert, open_qty) VALUES ('$item_number3', '$product_id3', '$name3', '$unit3', '$category3', '$cost_price3', '$selling_price3', '$quantity3', '$reorder_level3', '$opening3')");

 		echo '<option value="'.$name3.'">:Item';

	die();
?>

