
<?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'];
$EfdSN=$_POST['EfdSN'];
$Phone=$_POST['Phone'];
$Business=$_POST['Business'];
$TaxOffice=$_POST['TaxOffice'];
$EfdPurchaseDate=$_POST['EfdPurchaseDate'];
$PaymentMode=$_POST['PaymentMode'];
$EfdDescription=$_POST['EfdDescription'];
$Amount=$_POST['Amount'];
$Model=$_POST['Model'];
$Printer=$_POST['Printer'];
$soldfrom=$_POST['soldfrom'];


//$password=$_POST['password'];
$hidden=$_POST['hidden'];
$query="update defd set CustomerName='$CustomerName', CustomerTin='$CustomerTin' , Address='$Address' , Phone='$Phone' , Business='$Business', TaxOffice='$TaxOffice', PaymentMode='$PaymentMode' , Amount='$Amount' , Model='$Model', Printer='$Printer', soldfrom='$soldfrom', EfdPurchaseDate='$EfdPurchaseDate', EfdSN='$EfdSN', EfdDescription=$EfdDescription where DEfdId='$hidden'";
$link=mysqli_query($conn,$query) or die('Error, failed to select records'); 

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







