Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once'config.php';
- ?>
- <?php
- $name = $_POST["itemname"];
- $price = $_POST["Price"];
- $qty = $_POST["qty"];
- $des = $_POST["des"];
- $code = $_POST["code"];
- $sql ="INSERT into items(Item_id,Item_name,Item_description,Price,Quantity,Item_code)VALUES('','$name','$des','$price','$qty','$code')";
- if (mysqli_query($conn,$sql)){
- header("Location:index.php");
- }
- else
- {
- echo("Error");
- }
- $conn ->close();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement