Hi,
This is so grazy fault, that i'm totally stuck with it. Any change to calculation order or to calculation function doesn't help.
If the calculated value is below 1000, everything is working just fine, no problems.
Here are the calculations:
if (isset($POST['refresh'])) {
$OrderedAmt=($POST['OrderedAmt']);
$RetailPrice=($POST['RetailPrice']);
$TaxRate=($POST['TaxRate']);
$Rate=($TaxRate/"100"+"1");
$Tax=$OrderedAmt($RetailPrice-($RetailPrice/$Rate));
$Total=$OrderedAmt$RetailPrice;
$TaxFree=$Total-$Tax;
$Tax=number_format("$Tax", 2, ".", "");
$TaxFree=number_format("$TaxFree", 2, ".", "");
$Total=number_format("$Total", 2, ".", "");
}
if (isset($_POST['update']));
I have 2 submit-buttons. First make the calculation above, and second submits new values to table:
$updated = mysqli_query($db,"UPDATE offer SET ProductName='$ProductName',...and so on
Cannot find any other similar issues from any forum.
Have anyone clue, what could be the issue, when this happens?