
<?PHP

# STOP HERE 
#################################################################### 
# THIS CODE IS USED TO CONNECT TO THE MYSQL DATABASE 
include"config.php";
$CustomerName=$_POST['CustomerName'];
$CustomerTin=$_POST['CustomerTin'];
$Address=$_POST['Address'];
$VfdSN=$_POST['VfdSN'];
$Phone=$_POST['Phone'];
$Business=$_POST['Business'];
$TaxOffice=$_POST['TaxOffice'];
$VfdPurchaseDate=$_POST['VfdPurchaseDate'];

//$password=$_POST['password'];
$hidden=$_POST['hidden'];
$query="update vfd set CustomerName='$CustomerName', CustomerTin='$CustomerTin' , Address='$Address' , Phone='$Phone' , Business='$Business', TaxOffice='$TaxOffice', VfdPurchaseDate='$VfdPurchaseDate', VfdSN='$VfdSN' where VfdId='$hidden'";
$link=mysqli_query($conn,$query) or die('Error, failed to select records'); 

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







