-
Notifications
You must be signed in to change notification settings - Fork 1
/
additem1.php
21 lines (16 loc) · 861 Bytes
/
additem1.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
$connection = mysqli_connect("localhost", "root", "", "shopping") or die("Please, check the server connection!");
//$email_address = $_POST['item_code'];
$password = $_POST['item_name'];
$repassword = $_POST['brand_name'];
$completename = $_POST['model_number'];
$address1 = $_POST['weight'];
$address2 = $_POST['dimension'];
$city = $_POST['description'];
$state = $_POST['category'];
$country = $_POST['quantity'];
$zipcode = $_POST['price'];
$phone_no = $_POST['imagename'];
$insert_query = "INSERT INTO `products`(`item_name`, `brand_name`, `model_number`, `weight`, `dimension`, `description`, `category`, `quantity`, `price`, `imagename`) VALUES ('$password','$repassword','$completename','$address1','$address2','$city','$state','$country','$zipcode','$phone_no')";
$result = mysqli_query($connection, $insert_query) or die(mysql_error());
?>