Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  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. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement