D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
proc
/
self
/
root
/
home
/
shubmkcj
/
urbane.createerp.com
/
Filename :
update_more_inventory.php
back
Copy
<?php include 'config.php'; $url = $_POST['url']; $item_id = $_POST['item_id']; $date = date(' j F Y'); $item_name = $_POST['item_name']; $selling_price = $_POST['selling_price']; $quantity = $_POST['quantity']; $discount = $_POST['discount']; $category = $_POST['category']; $tax = $_POST['tax']; $discount_category = $_POST['discount_category']; $sql = "INSERT INTO `inventory_manager`( `item_id`,`item_name`, `selling_price`, `quantity`, `discount_applied`, `discount_category`, `category`, `tax`, `inventory_date`, `additional_quantity`) VALUES ('$item_id','$item_name', '$selling_price','$quantity','$discount','$discount_category','$category','$tax','$date','yes')"; if ($conn->query($sql) === TRUE) { echo '<script>localStorage.setItem("StockUpdated", "true");</script>'; echo '<script>location.replace("inventory_out_stock.php")</script>' ; } else { echo '<script>alert("Error !")</script>'; } ?>