
<?PHP

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


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

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

