<?php 
session_start();
include 'dbc.php';
$userid=$_SESSION["userid"];
$id=$_POST["id"];
$item_no=$_POST["item_no"];
$item_name=$_POST["item_name"];
$cost_price=$_POST["cost_price"];
$retail_price=$_POST["retail_price"];
$bal=$_POST["bal"];
$barcode=$_POST["barcode"];
$disc=$_POST["disc"];
$bname=$_POST["bname"];
$ven_name=$_POST["ven_name"];


$sql = "update items set 
item_no='$item_no', item_name='$item_name' , cost_price='$cost_price', retail_price='$retail_price', bal='$bal', rfid='$barcode', disc='$disc', bname='$bname', ven_name='$ven_name' where id='$id'";
$conn->query($sql);




header("location:Open_Items.php");

?>
