Hi all, I have created a function to calculate the VAT, I don’t want to echo the the VAT Amount but rather enter it to the database. Unsure of how I get the function to enter into the database with the calculated amount. I’m sure it’s something very simple.
function vatProcess($vat){
//Divide the entered amount by current VAT Rate
$getNet = $vat/1.20;
//Subtract VAT Amount from amount entered
$total = $vat-$getNet;
//Give the amount of VAT...
$grand = number_format($total,2);
}
So I basically would like to know how I can connect to $grand and enter that variable into the database.