
<?PHP

# STOP HERE 
#################################################################### 
# THIS CODE IS USED TO CONNECT TO THE MYSQL DATABASE 
include"config.php";
$product_name=$_POST['product_name'];
$purchase_price=$_POST['purchase_price'];
$product_price=$_POST['product_price'];
$sku=$_POST['sku'];
$product_size=$_POST['product_size'];
$p_group=$_POST['p_group'];
$category=$_POST['category'];

//$password=$_POST['password'];
$hidden=$_POST['hidden'];
$query="update product set product_name='$product_name', purchase_price='$purchase_price', product_price='$product_price', sku='$sku', product_size='$product_size', p_group='$p_group', category='$category' where product_id='$hidden'";
$link=mysqli_query($conn,$query) or die('Error, failed to select records'); 

header("location: product_list.php");
?>

