SHARE
TWEET

Untitled

a guest Sep 19th, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     include_once'config.php';
  3.     ?>
  4.    
  5.     <?php
  6.     $name = $_POST["itemname"];
  7.     $price = $_POST["Price"];
  8.     $qty = $_POST["qty"];
  9.     $des = $_POST["des"];
  10.     $code = $_POST["code"];
  11.    
  12.    
  13.    
  14.     $sql ="INSERT into items(Item_id,Item_name,Item_description,Price,Quantity,Item_code)VALUES('','$name','$des','$price','$qty','$code')";
  15.    
  16.     if (mysqli_query($conn,$sql)){
  17.     header("Location:index.php");
  18. }
  19. else
  20. {
  21. echo("Error");
  22. }
  23. $conn ->close();
  24.    
  25.     ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top