
<?PHP

# STOP HERE 
#################################################################### 
# THIS CODE IS USED TO CONNECT TO THE MYSQL DATABASE 
include"config.php";
$SN=$_POST['SN'];
$model=$_POST['model'];
$Description=$_POST['Description'];


//$password=$_POST['password'];
$hidden=$_POST['hidden'];
$query="update stock set SN='$SN', model='$model', Description='$Description' where stockid='$hidden'";
$link=mysqli_query($conn,$query) or die('Error, failed to select records'); 

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

