Hallo,
I have a database (Artikel) with 3 fields: Preis_EUR , Price_USD and EUR_Faktor.
Before updating I want to check, is the field EUR_Faktor filled, and if so
I want to calculate the price in EUR.
So I do following:
In EditPage / Before Record updated I put this code:
[codebox]if ($values["EUR_Faktor"] <> 0 )
{
$values["Preis_EUR"]=$values["Price_USD"] * $values["EUR_Faktor"] } ;
return true;[/codebox]
But I get an error: "Parse error: syntax error, unexpected T_VARIABLE, expecting '(' in D:\Server\WWWROOT\Alaska\include\artikel_events.php on line 30"
What is my mistake ?